From: Tobias Brunner Date: Wed, 5 Jun 2013 14:34:04 +0000 (+0200) Subject: Suppress log messages during tests X-Git-Tag: 5.1.0dr1~129^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bde35a6fb2da649abcf983435fcdb8642c6a3b79;p=thirdparty%2Fstrongswan.git Suppress log messages during tests --- diff --git a/src/libstrongswan/tests/test_suite.h b/src/libstrongswan/tests/test_suite.h index 616a50e3aa..edf16f128d 100644 --- a/src/libstrongswan/tests/test_suite.h +++ b/src/libstrongswan/tests/test_suite.h @@ -18,6 +18,7 @@ #include #include +#include /** * Used to mark test cases that use test fixtures. @@ -53,6 +54,7 @@ while(0) static void name (int _i CK_ATTRIBUTE_UNUSED) \ { \ tcase_fn_start(""#name, __FILE__, __LINE__); \ + dbg_default_set_level(LEVEL_SILENT); \ lib->leak_detective->set_state(lib->leak_detective, TRUE); #undef END_TEST