From 0dbc11922510971350772a7a1b4645a8ddc33c65 Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 1 May 2015 20:53:40 +0200 Subject: disable xdg-specific test on osx --- autotests/kconfigtest.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'autotests/kconfigtest.cpp') diff --git a/autotests/kconfigtest.cpp b/autotests/kconfigtest.cpp index 418929b1..9e1c09e3 100644 --- a/autotests/kconfigtest.cpp +++ b/autotests/kconfigtest.cpp @@ -892,11 +892,15 @@ void KConfigTest::testEmptyGroup() QVERIFY(lines.first() != QByteArray("TestKey=defaultGroup\n")); } +#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) && !defined(Q_OS_BLACKBERRY) && !defined(Q_OS_ANDROID) +#define Q_XDG_PLATFORM +#endif + void KConfigTest::testCascadingWithLocale() { // This test relies on XDG_CONFIG_DIRS, which only has effect on Unix. // Cascading (more than two levels) isn't available at all on Windows. -#ifdef Q_OS_UNIX +#ifdef Q_XDG_PLATFORM QTemporaryDir middleDir; QTemporaryDir globalDir; qputenv("XDG_CONFIG_DIRS", qPrintable(middleDir.path() + QString(":") + globalDir.path())); -- cgit v1.2.1