diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-10-06 11:26:03 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-10-06 11:26:03 +0200 |
| commit | 3938e58e689ae092ab0565b894c7d88831f26a85 (patch) | |
| tree | c620d1ec249372ceb510776d21cab5306274caab /test | |
| parent | 9d1c856bf0bbcaf1c6d8324330d800a3a9a109fa (diff) | |
We should not carry on if files don't open in tests.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc index 382ffd77..25d7726d 100644 --- a/test/test.cc +++ b/test/test.cc @@ -176,9 +176,9 @@ check_file (boost::filesystem::path ref, boost::filesystem::path check) uintmax_t N = boost::filesystem::file_size (ref); BOOST_CHECK_EQUAL (N, boost::filesystem::file_size (check)); FILE* ref_file = dcp::fopen_boost (ref, "rb"); - BOOST_CHECK (ref_file); + BOOST_REQUIRE (ref_file); FILE* check_file = dcp::fopen_boost (check, "rb"); - BOOST_CHECK (check_file); + BOOST_REQUIRE (check_file); int const buffer_size = 65536; uint8_t* ref_buffer = new uint8_t[buffer_size]; |
