Suppress log messages during tests
authorTobias Brunner <tobias@strongswan.org>
Wed, 5 Jun 2013 14:34:04 +0000 (16:34 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 11 Jun 2013 09:03:13 +0000 (11:03 +0200)
src/libstrongswan/tests/test_suite.h

index 616a50e..edf16f1 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <check.h>
 #include <library.h>
+#include <utils/debug.h>
 
 /**
  * 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