diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2020-06-09 14:04:31 +0200 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2020-06-09 14:04:31 +0200 |
commit | 759f5608f210cd7fbc8afc99462c92bfc3d5bee8 (patch) | |
tree | 27c59a28a885356b548dd74a0dad94791a396ded | |
parent | 29c491b977543e9ef86147604ab3a297ece18327 (diff) | |
download | efl-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.c | 6 |
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 |