From 51ecd6c5fbae1d685c859fa35d9acda406161784 Mon Sep 17 00:00:00 2001 From: Teemu Toivola Date: Wed, 13 Aug 2014 18:25:02 +0300 Subject: [PATCH] fix occasionally failing test --- tests/database_tests.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.40.0