summaryrefslogtreecommitdiff
path: root/test/test.h
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/test.h
parent7e99a348e6741287d839cdeb2612637504ed3576 (diff)
Hopefully make all tests stable enough to be run with --random,
stopping test reference churn.
Diffstat (limited to 'test/test.h')
-rw-r--r--test/test.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test.h b/test/test.h
index 69ed85be..db33067c 100644
--- a/test/test.h
+++ b/test/test.h
@@ -29,3 +29,14 @@ extern boost::filesystem::path xsd_test;
extern void check_xml (xmlpp::Element* ref, xmlpp::Element* test, std::list<std::string> ignore);
extern void check_xml (std::string ref, std::string test, std::list<std::string> ignore);
extern void check_file (boost::filesystem::path ref, boost::filesystem::path check);
+
+/** Creating an object of this class will make asdcplib's random number generation
+ * (more) predictable.
+ */
+class RNGFixer
+{
+public:
+ RNGFixer ();
+ ~RNGFixer ();
+};
+