cedric pushed a commit to branch eet-1.7.
commit 33f6fa748e3cd078794446c9a4198b7b8cc4afc9
Author: Cedric Bail <[email protected]>
Date: Tue Jul 2 11:17:33 2013 +0900
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;
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev