aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp-test/zenhttp-test.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-09-29 10:00:54 +0200
committerGitHub Enterprise <[email protected]>2025-09-29 10:00:54 +0200
commit9074d8436125e95a56d1547b4b7e6a8dbc79bc40 (patch)
treeb1afab19eb2e6dfaf3c07079853cfc3830f8e614 /src/zenhttp-test/zenhttp-test.cpp
parent5.7.2 (diff)
downloadzen-9074d8436125e95a56d1547b4b7e6a8dbc79bc40.tar.xz
zen-9074d8436125e95a56d1547b4b7e6a8dbc79bc40.zip
make sure trace is configured for all test drivers (#523)
Diffstat (limited to 'src/zenhttp-test/zenhttp-test.cpp')
-rw-r--r--src/zenhttp-test/zenhttp-test.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zenhttp-test/zenhttp-test.cpp b/src/zenhttp-test/zenhttp-test.cpp
index 116971b02..d18b2167e 100644
--- a/src/zenhttp-test/zenhttp-test.cpp
+++ b/src/zenhttp-test/zenhttp-test.cpp
@@ -22,7 +22,15 @@ main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
zen::IgnoreChildSignals();
# endif
+# if ZEN_WITH_TRACE
zen::TraceInit("zenhttp-test");
+ zen::TraceOptions TraceCommandlineOptions;
+ if (GetTraceOptionsFromCommandline(TraceCommandlineOptions))
+ {
+ TraceConfigure(TraceCommandlineOptions);
+ }
+# endif // ZEN_WITH_TRACE
+
zen::logging::InitializeLogging();
zen::MaximizeOpenFileCount();