kde4support: kstandarddirs_unittest fix

Alex Merry kde at randomguy3.me.uk
Fri Dec 20 23:07:08 UTC 2013


In my continuing mission to make the frameworks green on Jenkins:

This makes the tests work even when not installed, even when kde4support
is installed to a separate prefix to the rest of frameworks (as it is on
Jenkins -- although this setup is dangerous for *real* users of
KStandardDirs).

The one bit that is still failing is testSetXdgDataDirs() and
testRestrictedResources(), which both fail for the same reason.

Basically, the test checks that
 CMAKE_INSTALL_PREFIX "/share/applications/"
is in the xdgdata-apps resource.  However, KStandardDirs puts
 CMAKE_INSTALL_PREFIX "/share/applications/kde5/"
in the xdgdata-apps resource.

Which is right: the test or KStandardDirs?

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kstandarddirs_unittest.diff
Type: text/x-patch
Size: 28466 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20131220/b95663e0/attachment-0001.diff>


More information about the Kde-frameworks-devel mailing list