From 33f6fa748e3cd078794446c9a4198b7b8cc4afc9 Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Tue, 2 Jul 2013 11:17:33 +0900 Subject: eet: force at least one sync. There is a possibility that the thread will never run on some system. In 1.8 I will enforce the thread to run at least once, but it is easier this way on 1.7. --- src/tests/eet_suite.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/eet_suite.c b/src/tests/eet_suite.c index dfb8dd5..d7329a9 100644 --- a/src/tests/eet_suite.c +++ b/src/tests/eet_suite.c @@ -1924,6 +1924,7 @@ START_TEST(eet_cache_concurrency) ef = eet_open(file, EET_FILE_MODE_WRITE); fail_if(!ef); fail_if(!eet_write(ef, "keys/tests", buffer, strlen(buffer) + 1, 0)); + fail_if(eet_sync(ef) != EET_ERROR_NONE); /* start a thread that repeatedly opens and closes a file */ open_worker_stop = 0; -- cgit v1.2.1