projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d3ad3c
)
Improve a test failure message.
author
Carl Hetherington
<cth@carlh.net>
Fri, 2 Jun 2023 21:37:58 +0000
(23:37 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 2 Jun 2023 21:37:58 +0000
(23:37 +0200)
test/hints_test.cc
patch
|
blob
|
history
diff --git
a/test/hints_test.cc
b/test/hints_test.cc
index 42c1c7cdaab7ac01008bbf2961b5c9d0a2b28fa5..55e859e0dce56ebffe5cd1ef8b1d1924c7629ce4 100644
(file)
--- a/
test/hints_test.cc
+++ b/
test/hints_test.cc
@@
-84,7
+84,11
@@
check (TextType type, string name, optional<string> expected_hint = optional<str
BOOST_REQUIRE_EQUAL (hints.size(), 1U);
BOOST_CHECK_EQUAL (hints[0], *expected_hint);
} else {
- BOOST_CHECK (hints.empty());
+ string message;
+ for (auto hint: hints) {
+ message += hint + "\n";
+ }
+ BOOST_CHECK_MESSAGE(hints.empty(), "Found: " << message);
}
}