diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2018-01-22 19:58:29 -0300 |
---|---|---|
committer | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2018-01-25 15:27:05 -0300 |
commit | 3a6ff3c6b366762848e7b6a9f3068462b99c73b5 (patch) | |
tree | aac62f467dfc85d4a843b466803c67d442df2892 /src/tests/ecore | |
parent | 9b56d9a257b03b65ea34a5717c8f3580ce3785ba (diff) | |
download | efl-3a6ff3c6b366762848e7b6a9f3068462b99c73b5.tar.gz |
tests: Check return value in tests.
GCC was complaining about ignored return values from realpath, chdir,
etc.
Diffstat (limited to 'src/tests/ecore')
-rw-r--r-- | src/tests/ecore/ecore_test_ecore_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_file.c b/src/tests/ecore/ecore_test_ecore_file.c index ce18d01e2b..b393e74199 100644 --- a/src/tests/ecore/ecore_test_ecore_file.c +++ b/src/tests/ecore/ecore_test_ecore_file.c @@ -334,7 +334,7 @@ START_TEST(ecore_test_ecore_file_operations) fail_if(ecore_file_cp(not_exist_file, "test_file") != EINA_FALSE); fail_if(ecore_file_mv(not_exist_file, "test_file") != EINA_FALSE); - chdir(eina_environment_tmp_get()); + ck_assert_int_eq(chdir(eina_environment_tmp_get()), 0); fail_if(ecore_file_mkpath(src_dir) != EINA_TRUE); fail_if(ecore_file_rmdir(src_dir) != EINA_TRUE); fail_if(ecore_file_mkpath(NULL) != EINA_FALSE); |