Make tst_qfilesystemmodel parallel-safe.
authorRohan McGovern <rohan.mcgovern@nokia.com>
Mon, 28 May 2012 23:54:13 +0000 (09:54 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 29 May 2012 01:04:29 +0000 (03:04 +0200)
Changed one testfunction to use the test's own QTemporaryDir instead of
the system-wide temporary directory.

Change-Id: I6740a7f4ba7f53174cd0730239d8dc088e5111ba
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
tests/auto/widgets/dialogs/qfilesystemmodel/qfilesystemmodel.pro
tests/auto/widgets/dialogs/qfilesystemmodel/tst_qfilesystemmodel.cpp

index 47c4003..af213a5 100644 (file)
@@ -889,7 +889,7 @@ void tst_QFileSystemModel::sort()
 
 void tst_QFileSystemModel::mkdir()
 {
-    QString tmp = QDir::tempPath();
+    QString tmp = flatDirTestPath;
     QString newFolderPath = QDir::toNativeSeparators(tmp + '/' + "NewFoldermkdirtest4");
     QModelIndex tmpDir = model->index(tmp);
     QVERIFY(tmpDir.isValid());