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-09 14:04:31 +0200
commit759f5608f210cd7fbc8afc99462c92bfc3d5bee8 (patch)
tree27c59a28a885356b548dd74a0dad94791a396ded
parent29c491b977543e9ef86147604ab3a297ece18327 (diff)
downloadefl-759f5608f210cd7fbc8afc99462c92bfc3d5bee8.tar.gz
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
-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)
fd = eina_file_mkstemp(buf, &tmpfile);
fail_if((fd < 0) || !tmpfile || errno);
- close(fd);
+ fail_if(close(fd));
it = eina_file_direct_ls(tmpdir);
fail_if(!it);
@@ -825,8 +825,8 @@ EFL_START_TEST(eina_test_file_mktemp)
eina_iterator_free(it);
- unlink(tmpfile);
- remove(tmpdir);
+ fail_if(unlink(tmpfile));
+ fail_if(remove(tmpdir));
}
EFL_END_TEST