From ec588dffb8cbfa74b9e3282813e4ac8398a3da2f Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Thu, 16 Jun 2016 22:21:06 +0200 Subject: [PATCH] test that dump_sync works as well. --- tests/dump_test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/dump_test.c b/tests/dump_test.c index a0f2f150c7..b290190bfb 100644 --- a/tests/dump_test.c +++ b/tests/dump_test.c @@ -68,10 +68,14 @@ int main(int argc, char *argv[]) { dump_ensure(&d, 7 * chunk_size); /* Dump a few numbers. */ - printf("dumping %i chunks...\n", chunk_size); fflush(stdout); + printf("dumping %i chunks...\n", chunk_size); + fflush(stdout); threadpool_map(&t, dump_mapper, NULL, chunk_size, 0, 1, &d); } + /* Sync the file, not necessary before dump_close, but just to test this. */ + dump_sync(&d); + /* Finalize the dump. */ dump_close(&d); } -- GitLab