[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdelibs/KDE/4.8] kdecore/tests: Make this test pass on OSX as well.
From:       Sebastian Trueg <trueg () kde ! org>
Date:       2012-01-27 13:20:42
Message-ID: 20120127132042.B8559A6139 () git ! kde ! org
[Download RAW message or body]

Git commit b75b2ef83da53adaa4b43d93e78ce090ebc1c2fb 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 this test pass on OSX as well.

M  +1    -1    kdecore/tests/kstringhandlertest.cpp

http://commits.kde.org/kdelibs/b75b2ef83da53adaa4b43d93e78ce090ebc1c2fb

diff --git a/kdecore/tests/kstringhandlertest.cpp b/kdecore/tests/kstringha=
ndlertest.cpp
index 8aac143..0774a13 100644
--- a/kdecore/tests/kstringhandlertest.cpp
+++ b/kdecore/tests/kstringhandlertest.cpp
@@ -55,7 +55,7 @@ void KStringHandlerTest::naturalCompare()
     QCOMPARE(KStringHandler::naturalCompare("b", "a", Qt::CaseSensitive), =
+1);
     QCOMPARE(KStringHandler::naturalCompare("a", "a", Qt::CaseSensitive), =
0);
 =

-#ifdef Q_WS_WIN
+#if (defined Q_WS_WIN || defined Q_OS_MAC)
     // 'A' > 'a' ...
     QCOMPARE(KStringHandler::naturalCompare("A", "a", Qt::CaseSensitive), =
+1);
 #else

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic