summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/ecore/ecore_test_ecore_file.c')
-rw-r--r--src/tests/ecore/ecore_test_ecore_file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_file.c b/src/tests/ecore/ecore_test_ecore_file.c
index cd06d20c0f..dfeb72de0d 100644
--- a/src/tests/ecore/ecore_test_ecore_file.c
+++ b/src/tests/ecore/ecore_test_ecore_file.c
@@ -18,8 +18,10 @@ void
18_writeToFile(char *filePath, char *text) 18_writeToFile(char *filePath, char *text)
19{ 19{
20 FILE *f = fopen(filePath, "r+"); 20 FILE *f = fopen(filePath, "r+");
21 if (f == NULL) 21 if(f == NULL)
22 f = fopen(filePath, "w"); 22 {
23 f = fopen(filePath, "w");
24 }
23 fail_if(f == NULL); 25 fail_if(f == NULL);
24 fprintf(f, "%s\n", text); 26 fprintf(f, "%s\n", text);
25 fclose(f); 27 fclose(f);