diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-07-11 21:11:48 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-07-11 21:11:48 +0200 |
| commit | d4f3f5b44d5d42eaadc6fa3807648b6735d61758 (patch) | |
| tree | 80dc1bd02b4eb1b57d70bbd6a624dd879d2be766 /test/test.cc | |
| parent | 7e99a348e6741287d839cdeb2612637504ed3576 (diff) | |
Hopefully make all tests stable enough to be run with --random,
stopping test reference churn.
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/test.cc b/test/test.cc index 3933e430..b5b2535f 100644 --- a/test/test.cc +++ b/test/test.cc @@ -35,6 +35,8 @@ #define BOOST_TEST_MODULE libdcp_test #include "util.h" #include "test.h" +#include <asdcp/KM_util.h> +#include <asdcp/KM_prng.h> #include <libxml++/libxml++.h> #include <boost/test/unit_test.hpp> #include <cstdio> @@ -174,4 +176,18 @@ check_file (boost::filesystem::path ref, boost::filesystem::path check) fclose (check_file); } + +RNGFixer::RNGFixer () +{ + Kumu::cth_test = true; + Kumu::FortunaRNG().Reset(); +} + + +RNGFixer::~RNGFixer () +{ + Kumu::cth_test = false; +} + + BOOST_GLOBAL_FIXTURE (TestConfig); |
