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".

Pick-to: 6.0
Change-Id: Ia82b07902a91eb908a74aa90cdbdf4761d432d9a
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
bb10
Andreas Buhr 2020-11-23 12:50:39 +01:00
parent 1dff26dd95
commit 824de3850e
1 changed files with 2 additions and 2 deletions

View File

@ -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"