Commit 5be0ce2d authored by Kevin Funk's avatar Kevin Funk
Browse files

test_manpagemodel: Stabilize

Make it work even if man pages for dlmopen & friends are not installed
parent 1b14c3c5
...@@ -56,13 +56,16 @@ void TestManPageModel::testDocumentation() ...@@ -56,13 +56,16 @@ void TestManPageModel::testDocumentation()
QVERIFY(spy.wait()); QVERIFY(spy.wait());
const QString description = documentation.description(); const QString description = documentation.description();
if (!description.isEmpty()) { QVERIFY(!description.isEmpty());
qDebug() << description; qDebug() << description;
// check that we've found the correct page by checking some references if (description.contains("No man page matching to dlmopen found")) {
QVERIFY(description.contains("dlclose")); QSKIP("This test requires installed man pages for dlmopen & friends");
QVERIFY(description.contains("dlerror"));
QVERIFY(description.contains("dlopen"));
} }
// check that we've found the correct page by checking some references
QVERIFY(description.contains("dlclose"));
QVERIFY(description.contains("dlerror"));
QVERIFY(description.contains("dlopen"));
} }
QTEST_MAIN(TestManPageModel) QTEST_MAIN(TestManPageModel)
......
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