diff --git a/tests/runnercontexttest.cpp b/tests/runnercontexttest.cpp index 79a9b0edd..92055a4a0 100644 --- a/tests/runnercontexttest.cpp +++ b/tests/runnercontexttest.cpp @@ -19,6 +19,7 @@ #include "runnercontexttest.h" +#include #include "plasma/runnercontext.h" Q_DECLARE_METATYPE(Plasma::RunnerContext::Type) @@ -28,8 +29,10 @@ void RunnerContextTest::typeDetection_data() QTest::addColumn("url"); QTest::addColumn("type"); - QTest::newRow("man page listing") << "man:/" << Plasma::RunnerContext::NetworkLocation; - QTest::newRow("ls man page listing") << "man://ls" << Plasma::RunnerContext::NetworkLocation; + if (KProtocolInfo::isKnownProtocol("man")) { + QTest::newRow("man page listing") << "man:/" << Plasma::RunnerContext::NetworkLocation; + QTest::newRow("ls man page listing") << "man://ls" << Plasma::RunnerContext::NetworkLocation; + } QTest::newRow("http without host") << "http://" << Plasma::RunnerContext::UnknownType; QTest::newRow("http with host") << "http://kde.org" << Plasma::RunnerContext::NetworkLocation; QTest::newRow("file double slash") << "file://home" << Plasma::RunnerContext::Directory;