$OpenBSD: patch-kdecore_tests_kstandarddirstest_cpp,v 1.3 2013/06/06 08:36:49 zhuk Exp $
--- kdecore/tests/kstandarddirstest.cpp.orig	Tue May 28 22:33:13 2013
+++ kdecore/tests/kstandarddirstest.cpp	Wed Jun  5 07:49:06 2013
@@ -96,7 +96,7 @@ void KStandarddirsTest::testFindResource()
 #define KIOSLAVE "bin/kioslave.exe"
 #else
 #define EXT ""
-#define KIOSLAVE "kde4/libexec/kioslave"
+#define KIOSLAVE "libexec/kioslave"
 #endif
     const QString bin = KGlobal::dirs()->findResource( "exe", "kioslave" EXT );
     QVERIFY( !bin.isEmpty() );
@@ -241,7 +241,7 @@ void KStandarddirsTest::testFindExe()
     // findExe with a result in libexec
     const QString lnusertemp = KGlobal::dirs()->findExe( "lnusertemp" );
     QVERIFY( !lnusertemp.isEmpty() );
-    QVERIFY( lnusertemp.endsWith( "lib" KDELIBSUFF "/kde4/libexec/lnusertemp" EXT, PATH_SENSITIVITY ) );
+    QVERIFY( lnusertemp.endsWith( "/libexec/lnusertemp" EXT, PATH_SENSITIVITY ) );
 #endif
 
 #ifndef Q_OS_MAC // kdeinit4 is a bundle on Mac, so the below doesn't work
@@ -253,7 +253,7 @@ void KStandarddirsTest::testFindExe()
 
 #ifdef Q_OS_UNIX
     QCOMPARE_PATHS( KGlobal::dirs()->realFilePath(lnusertemp),
-              KGlobal::dirs()->locate( "exe", "lnusertemp" ) );
+              KGlobal::dirs()->locate( "libexec", "lnusertemp" ) );
 
     // findExe with relative path
     const QString pwd = QDir::currentPath();
