diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-20 16:54:37 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-21 23:52:46 +0200 |
| commit | e3dba6242aed7415eddbbfb1e5d56ce6680603c1 (patch) | |
| tree | 8628ae20b900cd03638648ef34711a56bf7ef3a6 /test/required_disk_space_test.cc | |
| parent | 19b6cd41712d38cb5b1c97659c8a1cc86e784812 (diff) | |
Replace all new_test_film with new_test_film2.
Diffstat (limited to 'test/required_disk_space_test.cc')
| -rw-r--r-- | test/required_disk_space_test.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/test/required_disk_space_test.cc b/test/required_disk_space_test.cc index e26a09169..d2e2b4665 100644 --- a/test/required_disk_space_test.cc +++ b/test/required_disk_space_test.cc @@ -44,17 +44,12 @@ void check_within_n (int64_t a, int64_t b, int64_t n) BOOST_AUTO_TEST_CASE (required_disk_space_test) { - auto film = new_test_film ("required_disk_space_test"); + auto content_a = content_factory("test/data/flat_blue.png")[0]; + auto content_b = make_shared<DCPContent>("test/data/burnt_subtitle_test_dcp"); + auto film = new_test_film2("required_disk_space_test", { content_a, content_b }); film->set_video_bit_rate(VideoEncoding::JPEG2000, 100000000); film->set_audio_channels(8); film->set_reel_type (ReelType::BY_VIDEO_CONTENT); - auto content_a = content_factory("test/data/flat_blue.png")[0]; - BOOST_REQUIRE (content_a); - film->examine_and_add_content (content_a); - auto content_b = make_shared<DCPContent>("test/data/burnt_subtitle_test_dcp"); - film->examine_and_add_content (content_b); - BOOST_REQUIRE (!wait_for_jobs()); - film->write_metadata (); check_within_n ( film->required_disk_space(), |
