Skip to content

Commit

Permalink
Fixed a test file after recent changes in Qt6 (#303)
Browse files Browse the repository at this point in the history
Closes #302
  • Loading branch information
tsujan authored Apr 15, 2024
1 parent 2311c0f commit a9d3ca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tst_xdgdesktopfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ QTEST_MAIN(tst_xdgdesktopfile)

void tst_xdgdesktopfile::testRead()
{
QTemporaryFile file(QStringLiteral("testReadXXXXXX.desktop"));
QTemporaryFile file(QDir::temp().filePath(QStringLiteral("testReadXXXXXX.desktop")));
QVERIFY(file.open());
const QString fileName = file.fileName();
QTextStream ts(&file);
Expand Down Expand Up @@ -87,7 +87,7 @@ void tst_xdgdesktopfile::testReadLocalized_data()

void tst_xdgdesktopfile::testReadLocalized()
{
QTemporaryFile file(QStringLiteral("testReadLocalizedXXXXXX.desktop"));
QTemporaryFile file(QDir::temp().filePath(QStringLiteral("testReadLocalizedXXXXXX.desktop")));
QVERIFY(file.open());
const QString fileName = file.fileName();
QTextStream ts(&file);
Expand Down

0 comments on commit a9d3ca5

Please sign in to comment.