[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:       Sebastian Trueg <trueg () kde ! org>
Date:       2012-01-27 13:20:42
Message-ID: 20120127132042.B5662A6137 () git ! kde ! org
[Download RAW message or body]

Git commit 0ee2b3eedd29b6433cf686ad475b4f5f8ab93a76 by Sebastian Trueg, on behalf of Till Adam.
Committed on 09/01/2012 at 20:46.
Pushed by trueg 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/0ee2b3eedd29b6433cf686ad475b4f5f8ab93a76

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