Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-137438

[REG 6.9.0 -> 6.9.1] QTemporaryFile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.9.1
    • Core: I/O
    • None
    • macOS, Windows

    Description

      The unit test file1 works with Qt 6.9.0 but with Qt 6.9.1 the last lines fails.
      While creating this minimal example I noted, that test2 fails with both versions.
      This Situation is the same on FreeBSD but I was not able to select it in "Platform/s".

              void file1() {
                  QTemporaryFile tmp;
                  QVERIFY(!tmp.exists());
      
                  QVERIFY(tmp.open());
                  QVERIFY(tmp.exists());
      
                  tmp.close();
                  QVERIFY(tmp.exists());
      
                  QFile::remove(QFileInfo(tmp).absoluteFilePath());
                  QVERIFY(!tmp.exists());
              }
      
      
              void file2() {
                  QTemporaryFile tmp;
                  QVERIFY(!tmp.exists());
      
                  QVERIFY(tmp.open());
                  QVERIFY(tmp.exists());
      
                  tmp.close();
                  QVERIFY(tmp.exists());
      
                  QVERIFY(tmp.remove());
                  QVERIFY(!tmp.exists());
              }
      

      Attachments

        For Gerrit Dashboard: QTBUG-137438
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            larss Lars Schmertmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change