diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-15 00:13:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-15 00:13:22 +0100 |
| commit | 1ba6c53ea04e6c0d61423e3345178ab41ec5f98f (patch) | |
| tree | 61a3cd672266738665d82a563f8e7eaa01d42a8e /test | |
| parent | b61ea15ed764171aad28939718f36146f8490f0c (diff) | |
More informative failures.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc index 1080aec79..b86796bbd 100644 --- a/test/test.cc +++ b/test/test.cc @@ -144,7 +144,10 @@ check_audio_file (boost::filesystem::path ref, boost::filesystem::path check) BOOST_CHECK_EQUAL (r, this_time); for (sf_count_t i = 0; i < this_time; ++i) { - BOOST_REQUIRE (abs (ref_buffer[i] - check_buffer[i]) <= 65536); + BOOST_REQUIRE_MESSAGE ( + abs (ref_buffer[i] - check_buffer[i]) <= 65536, + ref << " differs from " << check << " at " << (ref_info.frames - N + i) << " of " << ref_info.frames + ); } N -= this_time; |
