From 13e624c38f82e11d360841366d4322c477d6f5fc Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 29 Nov 2016 10:38:47 +0100 Subject: [PATCH] Fix compilation with Qt < 5.1 For review of #5045 --- test/testutility.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testutility.cpp b/test/testutility.cpp index 7c1f65227..62125c86f 100644 --- a/test/testutility.cpp +++ b/test/testutility.cpp @@ -160,8 +160,10 @@ private slots: QVERIFY(fsCasePreserving()); qputenv("OWNCLOUD_TEST_CASE_PRESERVING", "0"); QVERIFY(! fsCasePreserving()); +#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) qunsetenv("OWNCLOUD_TEST_CASE_PRESERVING"); QVERIFY(isMac() || isWindows() ? fsCasePreserving() : ! fsCasePreserving()); +#endif } void testFileNamesEqual() -- 2.30.2