diff --git a/test/webfuse/test_util/jansson_test_environment.cc b/test/webfuse/test_util/jansson_test_environment.cc index 24d091f..d7e3c2d 100644 --- a/test/webfuse/test_util/jansson_test_environment.cc +++ b/test/webfuse/test_util/jansson_test_environment.cc @@ -7,10 +7,14 @@ namespace webfuse_test class JanssonTestEnvironment: public ::testing::Environment { public: - void SetUp() + ~JanssonTestEnvironment() override { } + + void SetUp() override { json_object_seed(0); } }; -# + +::testing::Environment * const jansson_env = ::testing::AddGlobalTestEnvironment(new JanssonTestEnvironment()); + } \ No newline at end of file diff --git a/test/webfuse/test_util/lws_test_environment.cc b/test/webfuse/test_util/lws_test_environment.cc index 3d5de7c..3d6b168 100644 --- a/test/webfuse/test_util/lws_test_environment.cc +++ b/test/webfuse/test_util/lws_test_environment.cc @@ -13,4 +13,6 @@ public: } }; +::testing::Environment * const lws_env = ::testing::AddGlobalTestEnvironment(new LwsTestEnvironment()); + } \ No newline at end of file