kconfig_compiler: Use nullptr in generated code
ClosedPublic

Authored by kfunk on Dec 16 2016, 11:35 AM.

Diff Detail

Repository
R237 KConfig
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kfunk updated this revision to Diff 9072.Dec 16 2016, 11:35 AM
kfunk retitled this revision from to kconfig_compiler: Use nullptr in generated code.
kfunk updated this object.
kfunk edited the test plan for this revision. (Show Details)
davidedmundson accepted this revision.Dec 16 2016, 11:44 AM
davidedmundson added a reviewer: davidedmundson.
This revision is now accepted and ready to land.Dec 16 2016, 11:44 AM
This revision was automatically updated to reflect the committed changes.
dfaure added a comment.Jan 8 2017, 4:24 PM

Well, both ;)

Martin's commit landed after the change to nullptr even though it was initially written before that change so it wasn't ready for it -> I just fixed it in https://commits.kde.org/kconfig/d3de5a2a79d2786207d0cfbbc9828e00dabd148d

However I see more failures here :

12/35 Test #12: kconfiggui-kconfigskeletontest ...............***Failed 0.12 sec

  • Start testing of KConfigSkeletonTest *****

Config: Using QtTest library 5.8.0, Qt 5.8.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 4.8.5)
PASS : KConfigSkeletonTest::initTestCase()
FAIL! : KConfigSkeletonTest::testSimple() Compared values are not the same

Loc: [/d/kde/src/5/frameworks/kconfig/autotests/kconfigskeletontest.cpp(79)]

FAIL! : KConfigSkeletonTest::testDefaults() Compared values are not the same

Actual   (mMyBool)         : 1
Expected (DEFAULT_SETTING1): 0
dfaure added a comment.Jan 8 2017, 5:55 PM

Hmm OK, it's green in CI now.

I'm getting local failures around QFont but that seems like a change in Qt.

FAIL! : KConfigTest::testComplex() Compared values are not the same

Loc: [/home/dfaure/d/kde/src/5/frameworks/kconfig/autotests/kconfigguitest.cpp(81)]

(gdb) p t1.toString()
$16 = "Times,16,-1,5,50,0,0,0,0,0,Regular"
(gdb) p t2.toString()
$17 = "Times,16,-1,5,50,0,0,0,0,0"

The QFont::toString() I mentionned in my last comment were due to changes in Qt 5.8, and I now fixed them.

https://codereview.qt-project.org/181645

All good now, sorry for the noise.