[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdelibs/KDE/4.8] kdecore/tests: Make the test pass on OSX as well.
From: Till Adam <till () kdab ! com>
Date: 2012-01-09 20:16:57
Message-ID: 20120109201657.E551BA60B9 () git ! kde ! org
[Download RAW message or body]
Git commit b5657f2f14c60cb487e59c96cdb189f445cb3349 by Till Adam.
Committed on 09/01/2012 at 20:46.
Pushed by tilladam into branch 'KDE/4.8'.
Make the test pass on OSX as well.
M +5 -0 kdecore/tests/kstandarddirstest.cpp
http://commits.kde.org/kdelibs/b5657f2f14c60cb487e59c96cdb189f445cb3349
diff --git a/kdecore/tests/kstandarddirstest.cpp b/kdecore/tests/kstandarddirstest.cpp
index 85e9f35..ca19d26 100644
--- a/kdecore/tests/kstandarddirstest.cpp
+++ b/kdecore/tests/kstandarddirstest.cpp
@@ -220,7 +220,12 @@ void KStandarddirsTest::testFindExe()
// findExe with a result in bin
const QString kdeinit = KGlobal::dirs()->findExe( "kdeinit4" );
QVERIFY( !kdeinit.isEmpty() );
+#ifdef Q_OS_MAC
+ QVERIFY( kdeinit.endsWith( "kdeinit4", PATH_SENSITIVITY ) );
+#else
QVERIFY( kdeinit.endsWith( "bin/kdeinit4" EXT, PATH_SENSITIVITY ) );
+#endif
+
#ifdef Q_OS_UNIX
// findExe with a result in libexec
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic