From: Carl Hetherington Date: Mon, 26 Jun 2023 22:05:38 +0000 (+0200) Subject: Fix tests that were writing assets with the same filename to different reels. X-Git-Tag: v1.8.74~4 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=55c83a0ec5e4b74d9c5b33514b3c18489595c083;p=libdcp.git Fix tests that were writing assets with the same filename to different reels. --- diff --git a/test/verify_test.cc b/test/verify_test.cc index d7d9aaae..ef406662 100644 --- a/test/verify_test.cc +++ b/test/verify_test.cc @@ -2234,8 +2234,8 @@ verify_subtitles_must_be_in_all_reels_check (path dir, bool add_to_reel1, bool a auto reel_subs = make_shared(subs, dcp::Fraction(24, 1), reel_length, 0); auto reel1 = make_shared( - make_shared(simple_picture(dir, "", reel_length), 0), - make_shared(simple_sound(dir, "", dcp::MXFMetadata(), "en-US", reel_length), 0) + make_shared(simple_picture(dir, "1", reel_length), 0), + make_shared(simple_sound(dir, "1", dcp::MXFMetadata(), "en-US", reel_length), 0) ); if (add_to_reel1) { @@ -2249,8 +2249,8 @@ verify_subtitles_must_be_in_all_reels_check (path dir, bool add_to_reel1, bool a cpl->add (reel1); auto reel2 = make_shared( - make_shared(simple_picture(dir, "", reel_length), 0), - make_shared(simple_sound(dir, "", dcp::MXFMetadata(), "en-US", reel_length), 0) + make_shared(simple_picture(dir, "2", reel_length), 0), + make_shared(simple_sound(dir, "2", dcp::MXFMetadata(), "en-US", reel_length), 0) ); if (add_to_reel2) { @@ -2317,8 +2317,8 @@ verify_closed_captions_must_be_in_all_reels_check (path dir, int caps_in_reel1, subs->write (dir / "subs.mxf"); auto reel1 = make_shared( - make_shared(simple_picture(dir, "", reel_length), 0), - make_shared(simple_sound(dir, "", dcp::MXFMetadata(), "en-US", reel_length), 0) + make_shared(simple_picture(dir, "1", reel_length), 0), + make_shared(simple_sound(dir, "1", dcp::MXFMetadata(), "en-US", reel_length), 0) ); for (int i = 0; i < caps_in_reel1; ++i) { @@ -2332,8 +2332,8 @@ verify_closed_captions_must_be_in_all_reels_check (path dir, int caps_in_reel1, cpl->add (reel1); auto reel2 = make_shared( - make_shared(simple_picture(dir, "", reel_length), 0), - make_shared(simple_sound(dir, "", dcp::MXFMetadata(), "en-US", reel_length), 0) + make_shared(simple_picture(dir, "2", reel_length), 0), + make_shared(simple_sound(dir, "2", dcp::MXFMetadata(), "en-US", reel_length), 0) ); for (int i = 0; i < caps_in_reel2; ++i) {