summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-07-02 11:17:33 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-07-02 11:26:33 +0900
commit33f6fa748e3cd078794446c9a4198b7b8cc4afc9 (patch)
treeb17bf16ebe442cf051c68427b33ae5ec5c9c2bea
parent33cca3008f77711746993b64d7ddf499a777231c (diff)
downloadeet-33f6fa748e3cd078794446c9a4198b7b8cc4afc9.tar.gz
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.
-rw-r--r--src/tests/eet_suite.c1
1 files changed, 1 insertions, 0 deletions
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;