Fail assertion if a job fails.
authorCarl Hetherington <cth@carlh.net>
Tue, 16 May 2017 15:10:40 +0000 (16:10 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 16 May 2017 15:10:40 +0000 (16:10 +0100)
test/threed_test.cc

index 30de1f1a20fa86ab70665bb35d93b72f95bf5d6b..85dae3b6edc7c55e7db43bade3f92ce8b6060d21 100644 (file)
@@ -52,7 +52,7 @@ BOOST_AUTO_TEST_CASE (threed_test1)
        film->make_dcp ();
        film->write_metadata ();
 
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs ());
 }
 
 /** Basic sanity check of 3D-alternate; at the moment this is just to make sure
@@ -75,5 +75,5 @@ BOOST_AUTO_TEST_CASE (threed_test2)
        film->make_dcp ();
        film->write_metadata ();
 
-       wait_for_jobs ();
+       BOOST_REQUIRE (!wait_for_jobs ());
 }