From: Teemu Toivola Date: Wed, 13 Aug 2014 15:25:02 +0000 (+0300) Subject: fix occasionally failing test X-Git-Tag: v1.12~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51ecd6c5fbae1d685c859fa35d9acda406161784;p=vnstat fix occasionally failing test --- diff --git a/tests/database_tests.c b/tests/database_tests.c index 0ac040f..35dbe43 100644 --- a/tests/database_tests.c +++ b/tests/database_tests.c @@ -816,6 +816,7 @@ START_TEST(importdb_can_parse_exported_database) dup2(fileno(exportfile), STDOUT_FILENO); fclose(exportfile); dumpdb(); + fflush(stdout); memset(&data, '\0', sizeof(DATA)); ck_assert_int_gt(importdb(buffer), 0);