Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
blob fish
kdevelop
Commits
5be0ce2d
Commit
5be0ce2d
authored
Jul 13, 2016
by
Kevin Funk
☕
Browse files
test_manpagemodel: Stabilize
Make it work even if man pages for dlmopen & friends are not installed
parent
1b14c3c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
documentation/manpage/tests/test_manpagemodel.cpp
View file @
5be0ce2d
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment