Revert "ecore-tests: Fix formatting"

This commit alone is fine but it does changes to another commit that needs
reverting as it breaks make check / distcheck and thus this one has to be
reverted as well.

This reverts commit 652e2f688b.
This commit is contained in:
Stefan Schmidt 2014-11-10 11:36:48 +01:00
parent 2c35578a65
commit 1721c8e043
1 changed files with 4 additions and 2 deletions

View File

@ -18,8 +18,10 @@ void
_writeToFile(char *filePath, char *text)
{
FILE *f = fopen(filePath, "r+");
if (f == NULL)
f = fopen(filePath, "w");
if(f == NULL)
{
f = fopen(filePath, "w");
}
fail_if(f == NULL);
fprintf(f, "%s\n", text);
fclose(f);