diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-02 17:55:24 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-02 18:55:37 +0100 |
commit | a4a65a2a9fb89b705db15027963b34f2e6ea0a08 (patch) | |
tree | 3f16392a9378678d4f6f84ae3db0d1d76c5d8c08 /test | |
parent | 0048104e99a5f081c4202d2e48d335fdf942594e (diff) |
test: reduce magnum verbosity
Diffstat (limited to 'test')
-rw-r--r-- | test/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 <stdlib.h> +#include <cstdlib> 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(); } |