diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-17 00:04:57 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-17 00:26:33 +0000 |
| commit | d18db92081baa8d9521b1673abf1ea5d28ddbc5f (patch) | |
| tree | fe8dbf0d0dafa2d36f09f0360aa65dcbbbac8ddf /test/import_dcp_test.cc | |
| parent | ccd8399ff4937434c0d936a44f5db6ca1a93b237 (diff) | |
Make import_dcp_test more fussy to expose a bug with importing encrypted DCPs without a KDM.
Diffstat (limited to 'test/import_dcp_test.cc')
| -rw-r--r-- | test/import_dcp_test.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/import_dcp_test.cc b/test/import_dcp_test.cc index 775752c5c..aa4049111 100644 --- a/test/import_dcp_test.cc +++ b/test/import_dcp_test.cc @@ -50,10 +50,10 @@ BOOST_AUTO_TEST_CASE (import_dcp_test) shared_ptr<FFmpegContent> c (new FFmpegContent (A, "test/data/test.mp4")); A->examine_and_add_content (c); A->set_encrypted (true); - wait_for_jobs (); + BOOST_CHECK (!wait_for_jobs ()); A->make_dcp (); - wait_for_jobs (); + BOOST_CHECK (!wait_for_jobs ()); dcp::DCP A_dcp ("build/test/import_dcp_test/" + A->dcp_name()); A_dcp.read (); @@ -77,12 +77,13 @@ BOOST_AUTO_TEST_CASE (import_dcp_test) B->set_interop (false); shared_ptr<DCPContent> d (new DCPContent (B, "build/test/import_dcp_test/" + A->dcp_name())); - d->add_kdm (kdm); B->examine_and_add_content (d); - wait_for_jobs (); + BOOST_CHECK (!wait_for_jobs ()); + d->add_kdm (kdm); + BOOST_CHECK (!wait_for_jobs ()); B->make_dcp (); - wait_for_jobs (); + BOOST_CHECK (!wait_for_jobs ()); /* Should be 1s red, 1s green, 1s blue */ check_dcp ("test/data/import_dcp_test2", "build/test/import_dcp_test2/" + B->dcp_name()); |
