diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-05-02 09:40:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-02 09:40:20 +0200 |
| commit | 5119f9d875cd59f0acf069b653784b676bc54548 (patch) | |
| tree | dcb2c81f864e6197aecfc3017a29197872e982e1 | |
| parent | 01cfa8b85b93589476ce3dbff5f9f207ad737abf (diff) | |
Remove a specific path dependency from a test.
| -rw-r--r-- | test/find_missing_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/find_missing_test.cc b/test/find_missing_test.cc index 1bc4bef01..b23581810 100644 --- a/test/find_missing_test.cc +++ b/test/find_missing_test.cc @@ -137,8 +137,9 @@ BOOST_AUTO_TEST_CASE (find_missing_test_with_multiple_files_one_incorrect) /* Corrupt one of the files in the moved content, so that it should not be found in the find_missing * step */ - remove (moved / "cpl_80daeb7a-57d8-4a70-abeb-cd92ddac1527.xml"); - copy ("test/data/scaling_test_133_185/ASSETMAP.xml", moved / "cpl_80daeb7a-57d8-4a70-abeb-cd92ddac1527.xml"); + auto cpl = find_file(moved, "cpl_"); + remove (cpl); + copy ("test/data/scaling_test_133_185/ASSETMAP.xml", cpl); /* The film's contents should be invalid */ for (auto content: film->content()) { |
