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

Regression in QTemporaryFile::fileName()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.7.0
    • Core: I/O
    • None
    • 9a5e3e1f4 (dev), ec349e0c0 (6.8), 4654253b8 (6.7)

    Description

      QTemporaryFile::fileName() does not have a path anymore for template "XXXXXX.sig".

      The following code

      QTemporaryFile sig;
      sig.setFileTemplate("XXXXXX.sig");
      QVERIFY(sig.open());
      qDebug() << sig.fileName();
      

      prints something like /builds/pim/libkleo/_build/autotests/aCSxKd.sig with Qt <= 6.6.2, but it prints something like FFQAET.sig with Qt 6.7.0. This breaks a unit test in libkleo which hasn't been changed in ages.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            ikloecker Ingo Klöcker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes