diff --git a/test/log.cc b/test/log.cc index 8697effd..6ad33ced 100644 --- a/test/log.cc +++ b/test/log.cc @@ -285,3 +285,5 @@ void log_trouble(const char *where, const char *what, int errnum) { bool log_enabled(const logging::loglevel priority) { return (priority >= logging::level); } + +void log_flush(void) { fflushall(); } diff --git a/test/log.h b/test/log.h index c321f3ce..81eaf2ca 100644 --- a/test/log.h +++ b/test/log.h @@ -81,6 +81,7 @@ void __printf_args(1, 2) log_warning(const char *msg, ...); void __printf_args(1, 2) log_error(const char *msg, ...); void log_trouble(const char *where, const char *what, int errnum); +void log_flush(void); bool log_enabled(const logging::loglevel priority); #ifdef _DEBUG