kdelibs build issue in tests/ktabwidget_unittest.cpp

Pavel Heimlich, a.k.a. hajma tropikhajma at gmail.com
Tue Apr 13 01:16:05 CEST 2010


2010/4/7 David Faure <faure at kde.org>:
> On Wednesday 07 April 2010, Pavel Heimlich, a.k.a. hajma wrote:
>> Hi,
>> kdelibs fails on OpenSolaris/Sun Studio with
>> "/.../srcdir/kdeui/tests/ktabwidget_unittest.cpp", line 105: Error:
>> Could not find a match for QTest::qCompare<QTest::T>(QWidget*,
>> KLineEdit*, const char[23], const char[13], const char[80], int)
>> needed in KTabWidget_UnitTest::testMoveTab().
>>
>> I'd expect http://websvn.kde.org/?view=revision&revision=1110400 to be
>> the one and the problem to lie in a missing cast, I haven't played
>> with it however.
>
> Fixed in r1112097.

thanks a lot!

>
>> It's interesting, that although the Qt doc says "Note: QCOMPARE is
>> very strict on the data types. Both actual and expected have to be of
>> the same type, otherwise the test won't compile.", it apparently
>> compiles with gcc without a glitch.
>
> Yep, no idea how and why, but this makes me fall into that trap all the time
> (breaking the OpenSolaris build).

could you please have a look at
https://bugs.kde.org/show_bug.cgi?id=217958
https://bugs.kde.org/show_bug.cgi?id=218062
as well ?
it seems it's the same issue and a plain cast I'm using may not be the
best solution


hajma

>
> --
> David Faure, faure at kde.org, http://www.davidfaure.fr
> Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).


More information about the Kde-buildsystem mailing list