diff options
Diffstat (limited to 'src/zencore/testing.cpp')
| -rw-r--r-- | src/zencore/testing.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/zencore/testing.cpp b/src/zencore/testing.cpp index 9f88a3365..20a53bff3 100644 --- a/src/zencore/testing.cpp +++ b/src/zencore/testing.cpp @@ -39,7 +39,7 @@ PrintCrashCallstack([[maybe_unused]] const char* SignalName) // Use write() + backtrace_symbols_fd() which are async-signal-safe write(STDERR_FILENO, "\n*** Caught ", 12); write(STDERR_FILENO, SignalName, strlen(SignalName)); - write(STDERR_FILENO, " — callstack:\n", 15); + write(STDERR_FILENO, " - callstack:\n", 15); void* Frames[64]; int FrameCount = backtrace(Frames, 64); @@ -279,6 +279,10 @@ TestRunner::ApplyCommandLine(int Argc, char const* const* Argv, const char* Defa m_Impl->Session.applyCommandLine(Argc, Argv); + // Tests default to Info so that common runs aren't buried in debug/trace output. + // Use --debug or --verbose to opt back in when investigating a failure. + zen::logging::SetLogLevel(zen::logging::Info); + for (int i = 1; i < Argc; ++i) { if (Argv[i] == "--debug"sv) |