[Kde-pim] akonadi-4.3.1 failing tests with no X server connection

Dominik Kapusta ayoy at gentoo.org
Mon Sep 21 17:22:07 BST 2009


Hello there,

we at Gentoo have received a bug report some time ago, regarding 2 akonadi 
tests failing during test phase of installation:

http://bugs.gentoo.org/284009

It appears that for DescendantEntitiesProxyModelTest and 
SelectionProxyModelTest the QTEST_KDEMAIN macro is used, which requires a 
connection to X server to be available (by instantiating QApplication class).

In Gentoo the "portage" user, that performs the installation doesn't have a 
connection to X server by default, so that's why tests fail (by not being 
executed at all). I noticed that changing QTEST_KDEMAIN macros to 
QTEST_KDEMAIN_CORE helps, and these two tests are now executed and both are 
passing. For the record, I'm attaching the patch I used to have things 
working.


And by the way, I experience another failure, for which I blame Qt 4.6 that 
I'm using on my system. The CollectionTest fails for me with "Compared values 
are not the same" error. I'm attaching the output from test, where one can 
hardly notice the extra space before the closing angle bracket ('name="Inbox" 
>' and 'type="ENTITYDISPLAY" >'). So probably the comparison strings should be 
different #if QT_VERSION >= 0x040600, but I can't confirm this, since I'm too 
lazy to switch back to Qt 4.5 to check :)


Thanks!
Dominik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: akonadi-4.3.1-test-fix.patch
Type: text/x-patch
Size: 949 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20090921/b07da1c4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: collection-test-output.log
Type: text/x-log
Size: 972 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20090921/b07da1c4/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20090921/b07da1c4/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list