diff --git a/src/libstrongswan/tests/test_runner.c b/src/libstrongswan/tests/test_runner.c index 2c327c2ee..e0973573f 100644 --- a/src/libstrongswan/tests/test_runner.c +++ b/src/libstrongswan/tests/test_runner.c @@ -13,6 +13,8 @@ * for more details. */ +#include + #include "test_runner.h" #include @@ -24,6 +26,8 @@ int main() /* if a test fails there is no cleanup, so disable leak detective */ setenv("LEAK_DETECTIVE_DISABLE", "1", 1); + /* redirect all output to stderr (to redirect make's stdout to /dev/null) */ + dup2(2, 1); library_init(NULL);