summaryrefslogtreecommitdiff
path: root/test/j2k_bandwidth_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-10-04 22:04:40 +0200
committerCarl Hetherington <cth@carlh.net>2020-10-13 18:51:11 +0200
commit5d937606cf96d163be98920fa5619114a28eec9d (patch)
tree8e36025e51f2eaa9476de4c48810126a2f071127 /test/j2k_bandwidth_test.cc
parent7b302908e4b6186c44fd3a97aa4ba0716fb8674f (diff)
Fix use of DCPOMATIC_TEST_PRIVATE variable to specify where
test private data is.
Diffstat (limited to 'test/j2k_bandwidth_test.cc')
-rw-r--r--test/j2k_bandwidth_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/j2k_bandwidth_test.cc b/test/j2k_bandwidth_test.cc
index e66cf1829..832f48c3f 100644
--- a/test/j2k_bandwidth_test.cc
+++ b/test/j2k_bandwidth_test.cc
@@ -18,7 +18,7 @@
*/
-/** @file test/j2k_bandwidth_test.cc
+/** @file test/bandwidth_test.cc
* @brief Test whether we output whatever J2K bandwidth is requested.
* @ingroup specific
*/
@@ -40,12 +40,12 @@ check (int target_bits_per_second)
{
int const duration = 10;
- string const name = "j2k_bandwidth_test_" + dcp::raw_convert<string> (target_bits_per_second);
+ string const name = "bandwidth_test_" + dcp::raw_convert<string> (target_bits_per_second);
shared_ptr<Film> film = new_test_film (name);
film->set_name (name);
film->set_dcp_content_type (DCPContentType::from_isdcf_name ("FTR"));
film->set_j2k_bandwidth (target_bits_per_second);
- shared_ptr<ImageContent> content (new ImageContent(TestPaths::private_data / "prophet_frame.tiff"));
+ shared_ptr<ImageContent> content (new ImageContent(TestPaths::private_data() / "prophet_frame.tiff"));
film->examine_and_add_content (content);
BOOST_REQUIRE (!wait_for_jobs());
content->video->set_length (24 * duration);
@@ -63,7 +63,7 @@ check (int target_bits_per_second)
BOOST_CHECK ((actual_bits_per_second / target_bits_per_second) < 1.15);
}
-BOOST_AUTO_TEST_CASE (j2k_bandwidth_test)
+BOOST_AUTO_TEST_CASE (bandwidth_test)
{
check (50000000);
check (100000000);