summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2018-04-13 08:09:26 +0200
committerOliver Wolff <oliver.wolff@qt.io>2018-04-16 05:23:17 +0000
commit215e0f35d05d26967711e049965415cc0c2a5796 (patch)
treec07a28138e966ff2abcd250339586d2b18801ba0
parent8d7edf18ebd4bb4cf110000afb1b5a8b1f3887a4 (diff)
tst_qdir: Fix absoluteFilePath for winrt
The drive has to be defined for every Windows configuration (also including winrt). Change-Id: I94a3131b8aec20cda97dc78f55b1d87aa10240e4 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
-rw-r--r--tests/auto/corelib/io/qdir/tst_qdir.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qdir/tst_qdir.cpp b/tests/auto/corelib/io/qdir/tst_qdir.cpp
index 734b26cd65..83492188a9 100644
--- a/tests/auto/corelib/io/qdir/tst_qdir.cpp
+++ b/tests/auto/corelib/io/qdir/tst_qdir.cpp
@@ -1387,6 +1387,9 @@ void tst_QDir::absoluteFilePath_data()
#if defined(Q_OS_WIN) && !defined(Q_OS_WINRT)
QTest::newRow("UNC") << "//machine" << "share" << "//machine/share";
QTest::newRow("Drive") << "c:/side/town" << "/my/way/home" << "c:/my/way/home";
+#endif
+
+#ifdef Q_OS_WIN
#define DRIVE "Q:"
#else
#define DRIVE