summaryrefslogtreecommitdiff
path: root/src/tests/eio
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-12-03 09:32:39 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-12-05 21:04:36 +0100
commit3b44645363dcdd561edd9610a64f3d2c382753a9 (patch)
tree64f6c4a580e563e79ca3f1867ae510025052fd64 /src/tests/eio
parentd2a7882b732b4cc3a8e7b11ec1c4336bdc2029bb (diff)
efl: add binary mode to f(re)open() calls
This allows better compatibility with Windows Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/tests/eio')
-rw-r--r--src/tests/eio/eio_test_monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/eio/eio_test_monitor.c b/src/tests/eio/eio_test_monitor.c
index 7b93928ff3..daf2a3fd0d 100644
--- a/src/tests/eio/eio_test_monitor.c
+++ b/src/tests/eio/eio_test_monitor.c
@@ -72,7 +72,7 @@ static Eina_Bool _create_directory(void *data)
72 72
73static Eina_Bool _create_file(void *data) 73static Eina_Bool _create_file(void *data)
74{ 74{
75 FILE *fd = fopen((const char*)data, "w+"); 75 FILE *fd = fopen((const char*)data, "wb+");
76 ck_assert_ptr_ne(fd, NULL); 76 ck_assert_ptr_ne(fd, NULL);
77 fprintf(fd, "test test"); 77 fprintf(fd, "test test");
78 fclose(fd); 78 fclose(fd);
@@ -88,7 +88,7 @@ static Eina_Bool _delete_file(void *data)
88 88
89static Eina_Bool _modify_file(void *data) 89static Eina_Bool _modify_file(void *data)
90{ 90{
91 FILE *fd = fopen((const char*)data, "a"); 91 FILE *fd = fopen((const char*)data, "ab");
92 ck_assert_ptr_ne(fd, NULL); 92 ck_assert_ptr_ne(fd, NULL);
93 fprintf(fd, "appened"); 93 fprintf(fd, "appened");
94 fclose(fd); 94 fclose(fd);