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>
This commit is contained in:
Oliver Wolff 2018-04-13 08:09:26 +02:00
parent 8d7edf18eb
commit 215e0f35d0

View File

@ -1387,6 +1387,9 @@ void tst_QDir::absoluteFilePath_data()
#if defined(Q_OS_WIN) && !defined(Q_OS_WINRT) #if defined(Q_OS_WIN) && !defined(Q_OS_WINRT)
QTest::newRow("UNC") << "//machine" << "share" << "//machine/share"; QTest::newRow("UNC") << "//machine" << "share" << "//machine/share";
QTest::newRow("Drive") << "c:/side/town" << "/my/way/home" << "c:/my/way/home"; QTest::newRow("Drive") << "c:/side/town" << "/my/way/home" << "c:/my/way/home";
#endif
#ifdef Q_OS_WIN
#define DRIVE "Q:" #define DRIVE "Q:"
#else #else
#define DRIVE #define DRIVE