summaryrefslogtreecommitdiff
path: root/src/tests/eet/eet_suite.c
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-12-03 11:42:08 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-12-05 21:06:04 +0100
commit0497b9685c782c24fba84a1d5391edaa8d5ce10a (patch)
tree7a9547ea7ab407cfa555598646302bbc0b21b8c4 /src/tests/eet/eet_suite.c
parent4f242fb48a5cf18b6e5ea6598681486abf791771 (diff)
efl: add binary mode to open() calls
This allows better compatibility with Windows Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/tests/eet/eet_suite.c')
-rw-r--r--src/tests/eet/eet_suite.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/eet/eet_suite.c b/src/tests/eet/eet_suite.c
index 673294bbb9..e7737a7f1c 100644
--- a/src/tests/eet/eet_suite.c
+++ b/src/tests/eet/eet_suite.c
@@ -17,6 +17,10 @@
17 17
18#include "eet_suite.h" 18#include "eet_suite.h"
19 19
20#ifndef O_BINARY
21# define O_BINARY 0
22#endif
23
20static char _key_pem[PATH_MAX] = ""; 24static char _key_pem[PATH_MAX] = "";
21static char _cert_pem[PATH_MAX] = ""; 25static char _cert_pem[PATH_MAX] = "";
22static char _key_enc[PATH_MAX] = ""; 26static char _key_enc[PATH_MAX] = "";
@@ -1775,7 +1779,7 @@ START_TEST(eet_identity_simple)
1775 eet_clearcache(); 1779 eet_clearcache();
1776 1780
1777 /* Corrupting the file. */ 1781 /* Corrupting the file. */
1778 fd = open(file, O_WRONLY); 1782 fd = open(file, O_WRONLY | O_BINARY);
1779 fail_if(fd < 0); 1783 fail_if(fd < 0);
1780 1784
1781 fail_if(lseek(fd, 200, SEEK_SET) != 200); 1785 fail_if(lseek(fd, 200, SEEK_SET) != 200);