From: Carl Hetherington Date: Mon, 24 May 2021 22:30:48 +0000 (+0200) Subject: Make a test check more informative. X-Git-Tag: v2.15.152~13 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=b26f4e4cfa0a3b6df794f3207b420a413c52e773 Make a test check more informative. --- diff --git a/test/test.cc b/test/test.cc index 15bb2cc55..3cd5688e7 100644 --- a/test/test.cc +++ b/test/test.cc @@ -910,7 +910,7 @@ make_and_verify_dcp (shared_ptr film, vector 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); }