summaryrefslogtreecommitdiff
path: root/tests/tracker-steroids
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-09-30 22:36:37 +0200
committerCarlos Garnacho <carlosg@gnome.org>2017-10-05 13:58:03 +0200
commit7fda0a271d086805c161444ded5173781f58328f (patch)
treeaaf64e10f07716bcde952863c99b3567924031fa /tests/tracker-steroids
parent2d5b6e219897d04e460ca7e341fd1334acd913bd (diff)
downloadtracker-7fda0a271d086805c161444ded5173781f58328f.tar.gz
tests: Check return values for g_chmod/stat/remove calls
Makes sense testing for those. Spotted by Coverity (CIDS: 1188421, 1188422, 1188423, 1188430, 1188431, 1188432, 1188433, 1188434, 1188435, 1298206, 1298207, 1298208, 1298209)
Diffstat (limited to 'tests/tracker-steroids')
-rw-r--r--tests/tracker-steroids/tracker-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tracker-steroids/tracker-test.c b/tests/tracker-steroids/tracker-test.c
index e9782dca8..19bee6d69 100644
--- a/tests/tracker-steroids/tracker-test.c
+++ b/tests/tracker-steroids/tracker-test.c
@@ -226,7 +226,7 @@ test_tracker_sparql_query_iterate_empty_subprocess ()
cursor = tracker_sparql_connection_query (connection, query, NULL, &error);
- tracker_sparql_cursor_next (cursor, NULL, NULL);
+ g_assert (tracker_sparql_cursor_next (cursor, NULL, NULL));
/* Testing we fail with this error:
*
@@ -273,7 +273,7 @@ test_tracker_sparql_query_iterate_sigpipe ()
g_assert (cursor);
g_assert_no_error (error);
- tracker_sparql_cursor_next (cursor, NULL, NULL);
+ g_assert (tracker_sparql_cursor_next (cursor, NULL, NULL));
g_object_unref (cursor);
}