Make a test check more informative.
authorCarl Hetherington <cth@carlh.net>
Mon, 24 May 2021 22:30:48 +0000 (00:30 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 25 May 2021 19:35:12 +0000 (21:35 +0200)
test/test.cc

index 15bb2cc55e5a12f84198508846ea2636e8a2f732..3cd5688e7fd2bd69f1b87b16376c58bd6790d497 100644 (file)
@@ -910,7 +910,7 @@ make_and_verify_dcp (shared_ptr<Film> film, vector<dcp::VerificationNote::Code>
 void
 check_int_close (int a, int b, int d)
 {
-       BOOST_CHECK (std::abs(a - b) < d);
+       BOOST_CHECK_MESSAGE (std::abs(a - b) < d, a << " differs from " << b << " by more than " << d);
 }