aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-12-12 12:48:27 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-12-12 13:53:40 +0000
commit021c6064addd168017e0e9eff17639669e2f85d1 (patch)
treef53492f5bd42305ed3695d4e773773ed1c8e4969 /tests
parent9eea19123b002bc817e103ac3b3f80bdbd87a026 (diff)
tst_QQuickStyle::availableStyles(): Ignore case when checking paths on Windows
It is actually possible to get the test to fail in command line environments. Change-Id: I9e37e968bd259e3c7ad4acdb8bf289a64f199891 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qquickstyle/tst_qquickstyle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qquickstyle/tst_qquickstyle.cpp b/tests/auto/qquickstyle/tst_qquickstyle.cpp
index 8d09a293..f5207a96 100644
--- a/tests/auto/qquickstyle/tst_qquickstyle.cpp
+++ b/tests/auto/qquickstyle/tst_qquickstyle.cpp
@@ -159,7 +159,11 @@ void tst_QQuickStyle::availableStyles()
QQuickStyle::addStylePath(path);
QStringList paths = QQuickStylePrivate::stylePaths();
+#ifndef Q_OS_WIN
QVERIFY(paths.contains(path));
+#else
+ QVERIFY(paths.contains(path, Qt::CaseInsensitive));
+#endif
const QStringList styles = QQuickStyle::availableStyles();
QVERIFY(!styles.isEmpty());