mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdecore: shared-mime-info bug workaround in KMimeTypeTest::testFindByPathUsingFileName() data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
145eafe6b1
commit
1fa17897e4
1 changed files with 7 additions and 3 deletions
|
@ -259,10 +259,14 @@ void KMimeTypeTest::testFindByPathUsingFileName_data()
|
||||||
}
|
}
|
||||||
|
|
||||||
QString exePath = KStandardDirs::findExe( "kioexec" );
|
QString exePath = KStandardDirs::findExe( "kioexec" );
|
||||||
if ( exePath.isEmpty() )
|
if ( exePath.isEmpty() ) {
|
||||||
kWarning() << "kioexec not found";
|
kWarning() << "kioexec not found";
|
||||||
else {
|
} else {
|
||||||
const QString executableType = QString::fromLatin1( "application/x-executable" );
|
QString executableType = QString::fromLatin1( "application/x-executable" );
|
||||||
|
// https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/11
|
||||||
|
if (KMimeType::sharedMimeInfoVersion() <= KDE_MAKE_VERSION(2, 0, 0)) {
|
||||||
|
executableType = QString::fromLatin1( "application/x-sharedlib" );
|
||||||
|
}
|
||||||
QTest::newRow("executable") << exePath << executableType;
|
QTest::newRow("executable") << exePath << executableType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue