diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-10-15 04:45:49 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-10-15 04:45:49 (GMT) |
commit | 5ab4ccf0e0d3618e799dcfc82bd7fcf3fd560e78 (patch) | |
tree | a34e9e0b5fb7fea142ca23136dd78d77af49a1a7 /tests/auto/declarative/visual | |
parent | 5f24950397d078b74144b542c0eff6169aae68b3 (diff) | |
download | Qt-5ab4ccf0e0d3618e799dcfc82bd7fcf3fd560e78.zip Qt-5ab4ccf0e0d3618e799dcfc82bd7fcf3fd560e78.tar.gz Qt-5ab4ccf0e0d3618e799dcfc82bd7fcf3fd560e78.tar.bz2 |
Fix for when multiple tests share a data director.
Diffstat (limited to 'tests/auto/declarative/visual')
-rw-r--r-- | tests/auto/declarative/visual/tst_visual.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/visual/tst_visual.cpp b/tests/auto/declarative/visual/tst_visual.cpp index 367166d..cb32085 100644 --- a/tests/auto/declarative/visual/tst_visual.cpp +++ b/tests/auto/declarative/visual/tst_visual.cpp @@ -112,7 +112,7 @@ QString tst_visual::toTestScript(const QString &file, Mode mode) QString("data"); QString testname = file.mid(index + 1, file.length() - index - 5); - if (platformsuffix && (mode == UpdatePlatformVisuals || QDir(testdata+QLatin1String(platformsuffix)).exists())) { + if (platformsuffix && (mode == UpdatePlatformVisuals || QFile::exists(testdata+QLatin1String(platformsuffix)+QDir::separator()+testname))) { QString platformdir = testdata + QLatin1String(platformsuffix); if (mode == UpdatePlatformVisuals) { Q_ASSERT(QDir().mkpath(platformdir)); |