Bug 406175

Summary: NaturalCompareTest fails with Qt 5.12.2
Product: [Frameworks and Libraries] frameworks-kdelibs4support Reporter: Rik Mills <rikmills>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.56.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Rik Mills 2019-04-03 08:52:14 UTC
SUMMARY

NaturalCompareTest fails with Qt 5.12.2 for Ubuntu autopkgtests. Passes against Qt 5.11.3

Ubuntu 19.04
Qt 5.12.2
Frameworks 5.56

http://autopkgtest.ubuntu.com/packages/k/kdelibs4support/disco/amd64


35/37 Test #35: naturalcomparetest .......................***Failed    0.03 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-ubuntu'
********* Start testing of NaturalCompareTest *********
Config: Using QtTest library 5.12.2, Qt 5.12.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 8.3.0)
PASS   : NaturalCompareTest::initTestCase()
FAIL!  : NaturalCompareTest::naturalCompare() Compared values are not the same
   Actual   (KStringHandler::naturalCompare("A", "a", Qt::CaseSensitive)): -1
   Expected (QString::localeAwareCompare("A", "a"))                      : -32
   Loc: [/tmp/autopkgtest.W3Zwtz/build.L9V/src/autotests/naturalcomparetest.cpp(41)]
PASS   : NaturalCompareTest::cleanupTestCase()
Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 0ms
********* Finished testing of NaturalCompareTest *********
Comment 1 Rik Mills 2019-04-03 09:15:01 UTC
Looks like KDE's test may have to adapt to changes in Qt 5.12.2 similar to https://bugreports.qt.io/browse/QTBUG-73116