diff options
author | David Faure <faure@kde.org> | 2015-05-01 20:53:40 +0200 |
---|---|---|
committer | David Faure <faure@kde.org> | 2015-05-01 20:58:16 +0200 |
commit | 0dbc11922510971350772a7a1b4645a8ddc33c65 (patch) | |
tree | 399229cde5f3dc9352ab10e06ee15f571fbf187d | |
parent | c315bc1ece2f2516e0697dcd921d949ed308594e (diff) | |
download | kconfig-0dbc11922510971350772a7a1b4645a8ddc33c65.tar.gz kconfig-0dbc11922510971350772a7a1b4645a8ddc33c65.tar.bz2 |
disable xdg-specific test on osx
-rw-r--r-- | autotests/kconfigtest.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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())); |