summaryrefslogtreecommitdiff
path: root/tests/tracker-steroids
diff options
context:
space:
mode:
authorPhilip Van Hoof <philip@codeminded.be>2010-09-10 16:27:02 +0200
committerMartyn Russell <martyn@lanedo.com>2010-09-15 14:30:30 +0100
commitfec2ef4baa3ae2321ab937235572e2ab6d31fec6 (patch)
tree6017ad6bccad7b072a0940cce89176edd72277d5 /tests/tracker-steroids
parentf088d23855d4f5876dac59b840a59ab23ce4686a (diff)
downloadtracker-fec2ef4baa3ae2321ab937235572e2ab6d31fec6.tar.gz
Fix issues in return-types, caught by unit tests and other testing
Diffstat (limited to 'tests/tracker-steroids')
-rw-r--r--tests/tracker-steroids/tracker-test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tracker-steroids/tracker-test.c b/tests/tracker-steroids/tracker-test.c
index 720819ff0..39f46801c 100644
--- a/tests/tracker-steroids/tracker-test.c
+++ b/tests/tracker-steroids/tracker-test.c
@@ -232,7 +232,9 @@ test_tracker_sparql_query_iterate_empty ()
g_assert_no_error (error);
g_assert (!tracker_sparql_cursor_next (cursor, NULL, NULL));
- g_assert (!tracker_sparql_cursor_get_n_columns (cursor));
+ /* This should be 1, the original test had it wrong: there's one column,
+ * no matter if there are no results*/
+ g_assert (tracker_sparql_cursor_get_n_columns (cursor) == 1);
if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDOUT | G_TEST_TRAP_SILENCE_STDERR)) {
tracker_sparql_cursor_get_string (cursor, 0, NULL);
exit (0);