-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (22 loc) · 720 Bytes
/
Copy pathmain.cpp
File metadata and controls
30 lines (22 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// main.cpp
#define CATCH_CONFIG_RUNNER // Tell Catch2 we're providing our own main
#include <catch2/catch_all.hpp>
#include "vsb/log.h"
#include "vsb/objects/destruction_central.h"
#include "vsb/objects/singleton.h"
#include "vsb/objects/internal/object_registry.h"
#include "vsb/objects/internal/object_registry.h"
int main(int argc, char* argv[])
{
// === SETUP ===
vsb::log::InitForTests();
VSBLOG_INFO("Global test setup init");
vsb::VSBInit();
// Run all Catch2 tests
int const result = Catch::Session().run(argc, argv);
// === TEARDOWN ===
// This runs BEFORE any static destructors!
VSBLOG_INFO("Global test setup uninit");
vsb::VSBUninit();
return result;
}