diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-11-02 23:14:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-11-04 11:46:03 +0100 |
| commit | e1555a8837da05f135a3705112469206fc17ec80 (patch) | |
| tree | 591de2b5330e351b733a7f5488f35c35aeae2f2b /test/import_dcp_test.cc | |
| parent | 89c0fc8bf6893ecde5e220dca96444afd069bf7f (diff) | |
Add ConfigRestorer and use it instead of setup_test_config() directly.
Diffstat (limited to 'test/import_dcp_test.cc')
| -rw-r--r-- | test/import_dcp_test.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/import_dcp_test.cc b/test/import_dcp_test.cc index 8107aa77a..46deea539 100644 --- a/test/import_dcp_test.cc +++ b/test/import_dcp_test.cc @@ -54,6 +54,8 @@ using std::make_shared; /** Make an encrypted DCP, import it and make a new unencrypted DCP */ BOOST_AUTO_TEST_CASE (import_dcp_test) { + ConfigRestorer cr; + auto A = new_test_film ("import_dcp_test"); A->set_container (Ratio::from_id ("185")); A->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR")); @@ -100,9 +102,6 @@ BOOST_AUTO_TEST_CASE (import_dcp_test) /* Should be 1s red, 1s green, 1s blue */ check_dcp ("test/data/import_dcp_test2", "build/test/import_dcp_test2/" + B->dcp_name()); - - /* Restore the reference decryption chain */ - setup_test_config (); } |
