[tracker/return-types: 13/18] functional-tests: Added some comments to the query tests
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/return-types: 13/18] functional-tests: Added some comments to the query tests
- Date: Mon, 13 Sep 2010 09:09:56 +0000 (UTC)
commit 5e97205d474a200c8b49beb2f54789bd07b324fa
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Sep 10 13:56:28 2010 +0200
functional-tests: Added some comments to the query tests
tests/functional-tests/shared-query-test.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tests/functional-tests/shared-query-test.vala b/tests/functional-tests/shared-query-test.vala
index 182e046..334d0e8 100644
--- a/tests/functional-tests/shared-query-test.vala
+++ b/tests/functional-tests/shared-query-test.vala
@@ -17,6 +17,9 @@ public class TestApp : GLib.Object {
while (cursor.next()) {
int i;
+ // Apparently for async I need to do a first cursor.next()
+ // before cursor.n_columns is correct :-\
+
if (first) {
for (i = 0; i < cursor.n_columns; i++) {
print ("| %s ", cursor.get_variable_name (i));
@@ -42,6 +45,7 @@ public class TestApp : GLib.Object {
private void test_query () {
Cursor cursor;
+ print ("Sync test\n");
try {
cursor = con.query ("SELECT ?u WHERE { ?u a rdfs:Class }");
} catch (GLib.Error e) {
@@ -65,6 +69,7 @@ public class TestApp : GLib.Object {
private async void test_query_async () {
Cursor cursor;
+ print ("Async test\n");
try {
cursor = yield con.query_async ("SELECT ?u WHERE { ?u a rdfs:Class }");
} catch (GLib.Error e) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]