summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_code_test_basic.c
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-01-22 19:58:29 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-01-25 15:27:05 -0300
commit3a6ff3c6b366762848e7b6a9f3068462b99c73b5 (patch)
treeaac62f467dfc85d4a843b466803c67d442df2892 /src/tests/elementary/elm_code_test_basic.c
parent9b56d9a257b03b65ea34a5717c8f3580ce3785ba (diff)
tests: Check return value in tests.
GCC was complaining about ignored return values from realpath, chdir, etc.
Diffstat (limited to 'src/tests/elementary/elm_code_test_basic.c')
-rw-r--r--src/tests/elementary/elm_code_test_basic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/elementary/elm_code_test_basic.c b/src/tests/elementary/elm_code_test_basic.c
index 5f6827b..0016c67 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)
33 code = elm_code_create(); 33 code = elm_code_create();
34 elm_code_file_open(code, path); 34 elm_code_file_open(code, path);
35 35
36 realpath(path, realpath1); 36 ck_assert_ptr_ne(realpath(path, realpath1), NULL);
37 realpath(elm_code_file_path_get(code->file), realpath2); 37 ck_assert_ptr_ne(realpath(elm_code_file_path_get(code->file), realpath2), NULL);
38 ck_assert(!!code); 38 ck_assert(!!code);
39 ck_assert_str_eq(realpath1, realpath2); 39 ck_assert_str_eq(realpath1, realpath2);
40 elm_code_free(code); 40 elm_code_free(code);