]> granicus.if.org Git - vnstat/commitdiff
fix occasionally failing test
authorTeemu Toivola <git@humdi.net>
Wed, 13 Aug 2014 15:25:02 +0000 (18:25 +0300)
committerTeemu Toivola <git@humdi.net>
Wed, 13 Aug 2014 15:25:02 +0000 (18:25 +0300)
tests/database_tests.c

index 0ac040fb0c2ac0aa4b7d307489cdcfb0f98b61bc..35dbe438aa0c2f5b40a5104a5bafd0d5e0e4a975 100644 (file)
@@ -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);