projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6fc484f
)
Clarify some test failure messages.
author
Carl Hetherington
<cth@carlh.net>
Tue, 30 May 2023 15:20:32 +0000
(17:20 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 30 May 2023 15:20:32 +0000
(17:20 +0200)
test/test.cc
patch
|
blob
|
history
diff --git
a/test/test.cc
b/test/test.cc
index 06ec23dbcb6c4daadd5399cba6058fcb87197ed4..3a2286eb80843d7e39b5d165d10593f412ddea8c 100644
(file)
--- a/
test/test.cc
+++ b/
test/test.cc
@@
-989,11
+989,11
@@
find_file (boost::filesystem::path dir, string filename_part)
boost::optional<boost::filesystem::path> found;
for (auto i: boost::filesystem::directory_iterator(dir)) {
if (i.path().filename().string().find(filename_part) != string::npos) {
boost::optional<boost::filesystem::path> found;
for (auto i: boost::filesystem::directory_iterator(dir)) {
if (i.path().filename().string().find(filename_part) != string::npos) {
- BOOST_REQUIRE
(!found
);
+ BOOST_REQUIRE
_MESSAGE(!found, "File " << filename_part << " found more than once in " << dir
);
found = i;
}
}
found = i;
}
}
- BOOST_REQUIRE
(found
);
+ BOOST_REQUIRE
_MESSAGE(found, "Could not find " << filename_part << " in " << dir
);
return *found;
}
return *found;
}