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()
QVERIFY(spy.wait());
const QString description = documentation.description();
if (!description.isEmpty()) {
qDebug() << description;
// check that we've found the correct page by checking some references
QVERIFY(description.contains("dlclose"));
QVERIFY(description.contains("dlerror"));
QVERIFY(description.contains("dlopen"));
QVERIFY(!description.isEmpty());
qDebug() << description;
if (description.contains("No man page matching to dlmopen found")) {
QSKIP("This test requires installed man pages for dlmopen & friends");
}
// 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)
......
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