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-10 17:38:58 +0200 |
commit | 68d06ecc1af38be491c94b706e905be3707c0a15 (patch) | |
tree | 767756a0d7e62224877009f26126458afeecd5f3 | |
parent | 2e6323b3d4c6c5c3d1a1fb1165f64111ea49c0e8 (diff) | |
download | efl-68d06ecc1af38be491c94b706e905be3707c0a15.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
Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D11955
-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 |