diff --git a/samples/report.out.expected b/samples/report.out.expected index 20217bdc..d560277c 100644 --- a/samples/report.out.expected +++ b/samples/report.out.expected @@ -1,5 +1,4 @@ criterion_init -criterion_init testing test in category sample Asserts: [1 passed, 1 failed, 2 total] criterion_fini diff --git a/src/runner.c b/src/runner.c index a35a57cd..c28da672 100644 --- a/src/runner.c +++ b/src/runner.c @@ -296,6 +296,8 @@ static int criterion_run_all_tests_impl(void) { report(PRE_ALL, set); log(pre_all, set); + fflush(NULL); // flush everything before forking + smart struct criterion_global_stats *stats = stats_init(); map_tests(set, stats, run_test);