1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00

fix: instantiate test environments

This commit is contained in:
Falk Werner 2020-07-04 12:39:58 +02:00
parent 23dbe9f358
commit 4aab6ccf9b
2 changed files with 8 additions and 2 deletions

View File

@ -7,10 +7,14 @@ namespace webfuse_test
class JanssonTestEnvironment: public ::testing::Environment class JanssonTestEnvironment: public ::testing::Environment
{ {
public: public:
void SetUp() ~JanssonTestEnvironment() override { }
void SetUp() override
{ {
json_object_seed(0); json_object_seed(0);
} }
}; };
#
::testing::Environment * const jansson_env = ::testing::AddGlobalTestEnvironment(new JanssonTestEnvironment());
} }

View File

@ -13,4 +13,6 @@ public:
} }
}; };
::testing::Environment * const lws_env = ::testing::AddGlobalTestEnvironment(new LwsTestEnvironment());
} }