summaryrefslogtreecommitdiff
path: root/test/recovery_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-07-11 21:11:48 +0200
committerCarl Hetherington <cth@carlh.net>2020-07-11 21:11:48 +0200
commitd4f3f5b44d5d42eaadc6fa3807648b6735d61758 (patch)
tree80dc1bd02b4eb1b57d70bbd6a624dd879d2be766 /test/recovery_test.cc
parent7e99a348e6741287d839cdeb2612637504ed3576 (diff)
Hopefully make all tests stable enough to be run with --random,
stopping test reference churn.
Diffstat (limited to 'test/recovery_test.cc')
-rw-r--r--test/recovery_test.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/recovery_test.cc b/test/recovery_test.cc
index 03961e33..afeba6d7 100644
--- a/test/recovery_test.cc
+++ b/test/recovery_test.cc
@@ -33,6 +33,7 @@
#include "mono_picture_asset_writer.h"
#include "mono_picture_asset.h"
+#include "test.h"
#include <asdcp/KM_util.h>
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
@@ -43,7 +44,7 @@ using boost::shared_ptr;
/** Check that recovery from a partially-written MXF works */
BOOST_AUTO_TEST_CASE (recovery)
{
- Kumu::cth_test = true;
+ RNGFixer fix;
string const picture = "test/data/32x32_red_square.j2c";
int const size = boost::filesystem::file_size (picture);
@@ -55,11 +56,6 @@ BOOST_AUTO_TEST_CASE (recovery)
fclose (f);
}
-#ifdef LIBDCP_POSIX
- /* XXX: fix this posix-only stuff */
- Kumu::ResetTestRNG ();
-#endif
-
boost::filesystem::remove_all ("build/test/baz");
boost::filesystem::create_directories ("build/test/baz");
shared_ptr<dcp::MonoPictureAsset> mp (new dcp::MonoPictureAsset (dcp::Fraction (24, 1), dcp::SMPTE));