From 15a1da99e3930860e160a6c94b87e5467c765fcf Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 22 Nov 2022 23:18:04 +0100 Subject: [PATCH] Be a bit more defensive in a test that is failing on Windows. --- test/subtitle_font_id_change_test.cc | 2 ++ 1 file changed, 2 insertions(+) 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"); -- 2.30.2