From a9ecc71ad6a86c7923c0208a519ccea383ffaaf6 Mon Sep 17 00:00:00 2001 From: Johannes Schriewer Date: Tue, 31 Jul 2018 17:42:20 +0200 Subject: [PATCH] Disable buffered stdout for test files --- tests/test.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test.h b/tests/test.h index 714983a..51ae73f 100644 --- a/tests/test.h +++ b/tests/test.h @@ -71,6 +71,9 @@ int main(int argc, char **argv) { uint16_t skips = 0; uint16_t failures = 0; + setvbuf(stdout, NULL, _IOLBF, 128); + setvbuf(stderr, NULL, _IOLBF, 128); + for(DefinedTest *test = defined_tests; test->run != NULL; test++) { TestResult result = test->run(); switch (result.status) {