diff options
author | Tim Jenssen <tim.jenssen@digia.com> | 2014-01-20 17:25:20 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@digia.com> | 2014-01-22 15:52:26 +0100 |
commit | 54409e9701321380b41c96dbd4c851f6cc4cb766 (patch) | |
tree | e7de9525045b78ab066be9f344955cca7e1d8865 /tests/environmentvariable | |
parent | 851bd7738b170688955ccb136105ff88ca412d9d (diff) |
fix that QSKIP has one argument since Qt 5
Change-Id: I134f61e1ea9a50264a155799d447965beaab14f9
Reviewed-by: Niels Weber <niels.weber@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'tests/environmentvariable')
-rw-r--r-- | tests/environmentvariable/environmentvariabletest.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/environmentvariable/environmentvariabletest.cpp b/tests/environmentvariable/environmentvariabletest.cpp index c9766e619..472992214 100644 --- a/tests/environmentvariable/environmentvariabletest.cpp +++ b/tests/environmentvariable/environmentvariabletest.cpp @@ -60,7 +60,11 @@ EnvironmentVariableTest::EnvironmentVariableTest() void EnvironmentVariableTest::testPersistentNonSystem() { #ifndef Q_OS_WIN - QSKIP("This operation only works on Windows",SkipSingle); + #if QT_VERSION < 0x050000 + QSKIP("This operation only works on Windows", SkipSingle); + #else + QSKIP("This operation only works on Windows"); + #endif #endif KDUpdater::Application app; QString key = QLatin1String("IFW_TestKey"); @@ -89,7 +93,11 @@ void EnvironmentVariableTest::testPersistentNonSystem() void EnvironmentVariableTest::testNonPersistentNonSystem() { #ifndef Q_OS_WIN - QSKIP("This operation only works on Windows",SkipSingle); + #if QT_VERSION < 0x050000 + QSKIP("This operation only works on Windows", SkipSingle); + #else + QSKIP("This operation only works on Windows"); + #endif #endif KDUpdater::Application app; QString key = QLatin1String("IFW_TestKey"); |