diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-03-18 18:23:05 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-03-18 18:23:05 +0000 |
| commit | 90c23c53318af92fc7e77d12a612eab619aff937 (patch) | |
| tree | 442562be8f6fbe99b5ba82e8ebad8a0de858d350 /test | |
| parent | 8af7b48d8831cf348163a2f61c14b059cd67a8fd (diff) | |
Various test tidying.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc index 0f60e0f1..f51b0198 100644 --- a/test/test.cc +++ b/test/test.cc @@ -24,11 +24,16 @@ using std::string; +string private_test; + struct TestConfig { TestConfig() { libdcp::init (); + if (boost::unit_test::framework::master_test_suite().argc >= 2) { + private_test = boost::unit_test::framework::master_test_suite().argv[1]; + } } }; @@ -46,5 +51,4 @@ wav (libdcp::Channel) return "test/data/1s_24-bit_48k_silence.wav"; } -string private_test = "../libdcp-test-private"; |
