[tracker] Do not use g_assert_no_error to not require GLib 2.20



commit ee9c339e7c54ef665d58512658c6e1ae4913a497
Author: Jürg Billeter <j bitron ch>
Date:   Tue Aug 4 09:54:48 2009 +0200

    Do not use g_assert_no_error to not require GLib 2.20

 tests/libtracker-data/tracker-ontology-test.c |    6 +++---
 tests/libtracker-data/tracker-sparql-test.c   |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tests/libtracker-data/tracker-ontology-test.c b/tests/libtracker-data/tracker-ontology-test.c
index 571398a..f67d680 100644
--- a/tests/libtracker-data/tracker-ontology-test.c
+++ b/tests/libtracker-data/tracker-ontology-test.c
@@ -121,11 +121,11 @@ test_query (gconstpointer test_data)
 
 		query_filename = g_strconcat (test_prefix, ".rq", NULL);
 		g_file_get_contents (query_filename, &query, NULL, &error);
-		g_assert_no_error (error);
+		g_assert (error == NULL);
 
 		results_filename = g_strconcat (test_prefix, ".out", NULL);
 		g_file_get_contents (results_filename, &results, NULL, &error);
-		g_assert_no_error (error);
+		g_assert (error == NULL);
 
 		g_free (data_prefix);
 		g_free (test_prefix);
@@ -133,7 +133,7 @@ test_query (gconstpointer test_data)
 		/* perform actual query */
 
 		result_set = tracker_data_query_sparql (query, &error);
-		g_assert_no_error (error);
+		g_assert (error == NULL);
 
 		/* compare results with reference output */
 
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index e0376e1..e43460c 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -110,11 +110,11 @@ test_sparql_query (gconstpointer test_data)
 
 		query_filename = g_strconcat (test_prefix, ".rq", NULL);
 		g_file_get_contents (query_filename, &query, NULL, &error);
-		g_assert_no_error (error);
+		g_assert (error == NULL);
 
 		results_filename = g_strconcat (test_prefix, ".out", NULL);
 		g_file_get_contents (results_filename, &results, NULL, &error);
-		g_assert_no_error (error);
+		g_assert (error == NULL);
 
 		g_free (data_prefix);
 		g_free (test_prefix);
@@ -122,7 +122,7 @@ test_sparql_query (gconstpointer test_data)
 		/* perform actual query */
 
 		result_set = tracker_data_query_sparql (query, &error);
-		g_assert_no_error (error);
+		g_assert (error == NULL);
 
 		/* compare results with reference output */
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]