summaryrefslogtreecommitdiff
path: root/test/player_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/player_test.cc')
-rw-r--r--test/player_test.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/player_test.cc b/test/player_test.cc
index e22570bc0..585d357df 100644
--- a/test/player_test.cc
+++ b/test/player_test.cc
@@ -227,7 +227,11 @@ BOOST_AUTO_TEST_CASE (player_seek_test)
pair<shared_ptr<PlayerVideo>, DCPTime> video = butler->get_video();
BOOST_CHECK_EQUAL(video.second.get(), t.get());
write_image(video.first->image(note_handler, PlayerVideo::always_rgb, false, true), String::compose("build/test/player_seek_test_%1.png", i), "RGB");
- check_image(String::compose("test/data/player_seek_test_%1.png", i), String::compose("build/test/player_seek_test_%1.png", i));
+ /* This 0.011 is empirically chosen (hopefully) to accept changes in rendering between the reference and a test machine
+ (17.10 and 16.04 seem to anti-alias a little differently) but to reject gross errors e.g. missing fonts or missing
+ text altogether.
+ */
+ check_image(String::compose("test/data/player_seek_test_%1.png", i), String::compose("build/test/player_seek_test_%1.png", i), 0.011);
}
}