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

Stephen Kelly steveire at gmail.com
Thu Sep 24 10:41:21 BST 2009


Dominik Kapusta wrote:

> 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.

I've applied it in branches/KDE/4.3/kdepim/akonadi/akonadi_next/tests and in 
trunk/KDE/kdelibs/kdeui/tests where those classes have been moved to.

Thanks for the patch.

Steve.

> 
> 
> 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



_______________________________________________
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