From: Carl Hetherington Date: Tue, 22 Nov 2022 22:18:04 +0000 (+0100) Subject: Be a bit more defensive in a test that is failing on Windows. X-Git-Tag: v2.16.34~25 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=15a1da99e3930860e160a6c94b87e5467c765fcf Be a bit more defensive in a test that is failing on Windows. --- diff --git a/test/subtitle_font_id_change_test.cc b/test/subtitle_font_id_change_test.cc index 878dc6506..57add5c63 100644 --- a/test/subtitle_font_id_change_test.cc +++ b/test/subtitle_font_id_change_test.cc @@ -114,10 +114,12 @@ BOOST_AUTO_TEST_CASE(subtitle_font_id_change_test3) BOOST_REQUIRE (!wait_for_jobs()); auto font = content[0]->text.front()->get_font("Arial Black"); + BOOST_REQUIRE(font); BOOST_REQUIRE(font->file()); BOOST_CHECK_EQUAL(*font->file(), "test/data/Inconsolata-VF.ttf"); font = content[0]->text.front()->get_font("Helvetica Neue"); + BOOST_REQUIRE(font); BOOST_REQUIRE(font->file()); BOOST_CHECK_EQUAL(*font->file(), "test/data/Inconsolata-VF.ttf");