diff options
author | Andreas Buhr <andreas.buhr@qt.io> | 2020-11-23 12:50:39 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-11-24 23:49:09 +0000 |
commit | adf6f02bb07258db8010ab6215758123a073dae2 (patch) | |
tree | a0cc79def8a2818e4d9a41cd9f61dae5f8dd11a8 /tests | |
parent | e0cb10e4be59fe4ec16156da7ca7d5c47237084d (diff) |
Fix tst_qfiledialog2 in case directory ~/foo exists
One test in tst_qfiledialog2 only succeeded if the directory "~/foo"
did not exist. This patch changes the path used to "~/Vugiu1co"
which has hopefully a much lower probability of existing.
The string "Vugiu1co" is taken from a call to "pwgen".
Change-Id: Ia82b07902a91eb908a74aa90cdbdf4761d432d9a
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
(cherry picked from commit 824de3850e50904720f959d823fc8d962b639522)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/widgets/dialogs/qfiledialog2/tst_qfiledialog2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/widgets/dialogs/qfiledialog2/tst_qfiledialog2.cpp b/tests/auto/widgets/dialogs/qfiledialog2/tst_qfiledialog2.cpp index 92ca7f005c..efcf8719ca 100644 --- a/tests/auto/widgets/dialogs/qfiledialog2/tst_qfiledialog2.cpp +++ b/tests/auto/widgets/dialogs/qfiledialog2/tst_qfiledialog2.cpp @@ -422,9 +422,9 @@ void tst_QFileDialog2::task180459_lastDirectory_data() QTest::addColumn<bool>("isEnabled"); QTest::addColumn<QString>("result"); - QTest::newRow("path+file") << QDir::homePath() + QDir::separator() + "foo" + QTest::newRow("path+file") << QDir::homePath() + QDir::separator() + "Vugiu1co" << QDir::homePath() << true - << QDir::homePath() + QDir::separator() + "foo" ; + << QDir::homePath() + QDir::separator() + "Vugiu1co" ; QTest::newRow("no path") << "" << tempDir.path() << false << QString(); QTest::newRow("file") << "foo" |