[tracker/dbus-fd-experiment] Steroids tests: test tracker_result_iterator_n_columns
- From: Adrien Bustany <abustany src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/dbus-fd-experiment] Steroids tests: test tracker_result_iterator_n_columns
- Date: Thu, 24 Jun 2010 10:06:26 +0000 (UTC)
commit 1e87012d12c9cce67da3bc8f5c96b438d210f9c6
Author: Adrien Bustany <abustany gnome org>
Date: Thu Jun 24 12:05:54 2010 +0200
Steroids tests: test tracker_result_iterator_n_columns
tests/tracker-steroids/tracker-test.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/tracker-steroids/tracker-test.c b/tests/tracker-steroids/tracker-test.c
index 1db3c0c..513dffe 100644
--- a/tests/tracker-steroids/tracker-test.c
+++ b/tests/tracker-steroids/tracker-test.c
@@ -151,6 +151,7 @@ test_tracker_sparql_query_iterate ()
GError *error = NULL;
const gchar *query = "SELECT ?r nie:url(?r) WHERE {?r a nfo:FileDataObject}";
guint i = 0;
+ guint j;
int n_rows = 0;
r1 = tracker_resources_sparql_query (client, query, &error);
@@ -170,7 +171,9 @@ test_tracker_sparql_query_iterate ()
row = g_ptr_array_index (r1, i++);
- g_assert (!g_strcmp0 (tracker_result_iterator_value (iterator, 0), row[0]));
+ for (j = 0; j < tracker_result_iterator_n_columns (iterator); j++) {
+ g_assert (!g_strcmp0 (tracker_result_iterator_value (iterator, j), row[j]));
+ }
}
g_assert (n_rows == r1->len);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]