Be a bit more defensive in a test that is failing on Windows.
authorCarl Hetherington <cth@carlh.net>
Tue, 22 Nov 2022 22:18:04 +0000 (23:18 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 22 Nov 2022 22:18:04 +0000 (23:18 +0100)
test/subtitle_font_id_change_test.cc

index 878dc650668bd30d152aaea709fcb1b1f873b477..57add5c63e6d825fb8cfaa045f4cc01b1ded5aea 100644 (file)
@@ -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");