From 87c59354ebb33a8a657fffcd01d271e4ae4d8094 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Fri, 11 Jan 2019 12:59:19 +0100 Subject: [PATCH] Release mode testrunner outputs only messages with info level. --- Tests/testrunner.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/testrunner.cpp b/Tests/testrunner.cpp index c361facfc60..55f70ce1386 100644 --- a/Tests/testrunner.cpp +++ b/Tests/testrunner.cpp @@ -30,7 +30,11 @@ /// Implementation of the googletest testrunner int main(int argc, char* argv[]) { +#ifdef NDEBUG + std::string logLevel("info"); +#else std::string logLevel("all"); +#endif for (int i = 1; i < argc; i++) { if(i + 1 == argc) -- GitLab