stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=68d06ecc1af38be491c94b706e905be3707c0a15

commit 68d06ecc1af38be491c94b706e905be3707c0a15
Author: Stefan Schmidt <[email protected]>
Date:   Tue Jun 9 14:04:31 2020 +0200

    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 <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D11955
---
 src/tests/eina/eina_test_file.c | 6 +++---
 1 file 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
 

-- 


Reply via email to