diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-03-30 05:45:18 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-03-30 05:45:18 (GMT) |
commit | 859304f5a8d9169a3f2f30e013d460b0e93c118f (patch) | |
tree | cd5b3c36ba2c19d5a47371f687a664e2a955cbc1 | |
parent | 444c52937410a0581a8bb93c9bee2245a84fe24c (diff) | |
download | Qt-859304f5a8d9169a3f2f30e013d460b0e93c118f.zip Qt-859304f5a8d9169a3f2f30e013d460b0e93c118f.tar.gz Qt-859304f5a8d9169a3f2f30e013d460b0e93c118f.tar.bz2 |
Make visual tests run on windows
-rw-r--r-- | tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp b/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp index 8f1a406..2794ab8 100644 --- a/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp +++ b/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp @@ -106,7 +106,6 @@ void tst_qmlvisual::visual_data() files << QT_TEST_SOURCE_DIR "/animation/reanchor/reanchor.qml"; } - foreach (const QString &file, files) { QString testdata = toTestScript(file); if (testdata.isEmpty()) @@ -141,6 +140,8 @@ QString tst_qmlvisual::toTestScript(const QString &file, Mode mode) int index = file.lastIndexOf(QDir::separator()); if (index == -1) + index = file.lastIndexOf('/'); + if (index == -1) return QString(); const char* platformsuffix=0; // platforms with different fonts |