aboutsummaryrefslogtreecommitdiff
path: root/src/test/main.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-25 18:11:32 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-25 18:11:32 +0100
commit92e3fbda73128e65a31b3760b3fa4bd0147debe3 (patch)
tree40a2c43f0de4a0557074c69d1f8eafb5d7b61d3e /src/test/main.cpp
parentd038f192c7dcb453c9fc19082cd1b642c8f70fc8 (diff)
parentbe5ccbe24086d5d4fb407f268c649dcbc36eda6b (diff)
merge `master`
Diffstat (limited to 'src/test/main.cpp')
-rw-r--r--src/test/main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/test/main.cpp b/src/test/main.cpp
index 19a8d6e..e03a989 100644
--- a/src/test/main.cpp
+++ b/src/test/main.cpp
@@ -1,16 +1,21 @@
-#include <crepe/api/Config.h>
-
#include <gtest/gtest.h>
+#define protected public
+#define private public
+
+#include <crepe/api/Config.h>
+
using namespace crepe;
using namespace testing;
class GlobalConfigReset : public EmptyTestEventListener {
public:
Config & cfg = Config::get_instance();
+ Config cfg_default = Config();
// This function is called before each test
void OnTestStart(const TestInfo &) override {
+ cfg = cfg_default;
cfg.log.level = Log::Level::WARNING;
}
};