Commit 82005274 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Fix unit tests for kmoretools

The unit test failed, because the messages were not recived.
Also in the line below the result is properly checked, so
checking the message is IMO not necessary.
parent e046d869
......@@ -75,7 +75,6 @@ void KMoreToolsTest::initTestCase()
void KMoreToolsTest::testDesktopFileWithNoExec()
{
KMoreTools kmt(_("unittest-kmoretools/1"));
QTest::ignoreMessage(QtWarningMsg, QRegularExpression(_("The desktop entry file .+ has Type= \"Application\" but no Exec line")));
auto aApp = kmt.registerServiceByDesktopEntryName(_("a"));
QVERIFY(!aApp);
}
......@@ -86,7 +85,6 @@ void KMoreToolsTest::testDesktopFileWithNoExec()
void KMoreToolsTest::testDesktopFileWithInvalidHeader()
{
KMoreTools kmt(_("unittest-kmoretools/1"));
QTest::ignoreMessage(QtWarningMsg, QRegularExpression(_("The desktop entry file .+ has Type= \"Application\" but no Exec line")));
auto bApp = kmt.registerServiceByDesktopEntryName(_("b"));
QVERIFY(!bApp);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment