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); diff --git a/src/tests/elementary/elm_code_file_test_load.c b/src/tests/elementary/elm_code_file_test_load.c index b731f66b0d..fcdfb2f858 100644 --- a/src/tests/elementary/elm_code_file_test_load.c +++ b/src/tests/elementary/elm_code_file_test_load.c @@ -19,7 +19,7 @@ START_TEST (elm_code_file_load) elm_init(1, NULL); code = elm_code_create(); file = elm_code_file_open(code, path); - realpath(path, real); + ck_assert_ptr_ne(realpath(path, real), NULL); ck_assert_str_eq(ecore_file_file_get(path), elm_code_file_filename_get(file)); ck_assert_str_eq(real, elm_code_file_path_get(file)); diff --git a/src/tests/elementary/elm_code_test_basic.c b/src/tests/elementary/elm_code_test_basic.c index 5f6827b95e..0016c67c66 100644 --- a/src/tests/elementary/elm_code_test_basic.c +++ b/src/tests/elementary/elm_code_test_basic.c @@ -33,8 +33,8 @@ START_TEST (elm_code_open_test) code = elm_code_create(); elm_code_file_open(code, path); - realpath(path, realpath1); - realpath(elm_code_file_path_get(code->file), realpath2); + ck_assert_ptr_ne(realpath(path, realpath1), NULL); + ck_assert_ptr_ne(realpath(elm_code_file_path_get(code->file), realpath2), NULL); ck_assert(!!code); ck_assert_str_eq(realpath1, realpath2); elm_code_free(code);