From 3938e58e689ae092ab0565b894c7d88831f26a85 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 6 Oct 2020 11:26:03 +0200 Subject: [PATCH] We should not carry on if files don't open in tests. --- test/test.cc | 4 ++-- 1 file 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]; -- 2.30.2