summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-06-09 14:04:31 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-06-10 17:38:58 +0200
commit68d06ecc1af38be491c94b706e905be3707c0a15 (patch)
tree767756a0d7e62224877009f26126458afeecd5f3
parent2e6323b3d4c6c5c3d1a1fb1165f64111ea49c0e8 (diff)
tests: eina: also handle failure cases when cleaning up created files/folders
Somethign fishy is going on if we can not delete the files and folders we created. CID: 1400986 Reviewed-by: Christopher Michael <devilhorns@comcast.net> Differential Revision: https://phab.enlightenment.org/D11955
-rw-r--r--src/tests/eina/eina_test_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/eina/eina_test_file.c b/src/tests/eina/eina_test_file.c
index 8ef3d1a290..ccd6e55ca5 100644
--- a/src/tests/eina/eina_test_file.c
+++ b/src/tests/eina/eina_test_file.c
@@ -814,7 +814,7 @@ EFL_START_TEST(eina_test_file_mktemp)
814 814
815 fd = eina_file_mkstemp(buf, &tmpfile); 815 fd = eina_file_mkstemp(buf, &tmpfile);
816 fail_if((fd < 0) || !tmpfile || errno); 816 fail_if((fd < 0) || !tmpfile || errno);
817 close(fd); 817 fail_if(close(fd));
818 818
819 it = eina_file_direct_ls(tmpdir); 819 it = eina_file_direct_ls(tmpdir);
820 fail_if(!it); 820 fail_if(!it);
@@ -825,8 +825,8 @@ EFL_START_TEST(eina_test_file_mktemp)
825 825
826 eina_iterator_free(it); 826 eina_iterator_free(it);
827 827
828 unlink(tmpfile); 828 fail_if(unlink(tmpfile));
829 remove(tmpdir); 829 fail_if(remove(tmpdir));
830} 830}
831EFL_END_TEST 831EFL_END_TEST
832 832