Make tst_qfilesystemmodel parallel-safe.

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>
This commit is contained in:
Rohan McGovern 2012-05-29 09:54:13 +10:00 committed by Qt by Nokia
parent c68f4367f6
commit 61904b8cfc
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
CONFIG += testcase
CONFIG += parallel_test
QT += widgets widgets-private
QT += core-private gui testlib

View 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());