From a4a65a2a9fb89b705db15027963b34f2e6ea0a08 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 2 Mar 2023 17:55:24 +0100 Subject: test: reduce magnum verbosity --- test/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/main.cpp b/test/main.cpp index 4b176048..0d7ddf84 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -1,6 +1,8 @@ #include "app.hpp" #include "compat/assert.hpp" #include "loader/loader.hpp" +#include +#include namespace floormat { @@ -34,6 +36,13 @@ int test_app::exec() int main(int argc, char** argv) { +#ifdef _WIN32 + // NOLINTNEXTLINE(concurrency-mt-unsafe) + if (const auto* s = std::getenv("MAGNUM_LOG"); !s || !*s) + _putenv("MAGNUM_LOG=quiet"); +#else + setenv("MAGNUM_LOG", "quiet", 0); +#endif floormat::test_app application{{argc, argv}}; return application.exec(); } -- cgit v1.2.3