[tracker/rss-enclosures] libtracker-sparql: Use g_assert_no_error() instead in tests



commit 8dc5667a43a05e425814a4d1aedf9634bc8edfc7
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Nov 11 14:37:49 2010 +0000

    libtracker-sparql: Use g_assert_no_error() instead in tests

 tests/libtracker-sparql/tracker-test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtracker-sparql/tracker-test.c b/tests/libtracker-sparql/tracker-test.c
index d778d52..c419bd1 100644
--- a/tests/libtracker-sparql/tracker-test.c
+++ b/tests/libtracker-sparql/tracker-test.c
@@ -141,7 +141,7 @@ test_tracker_sparql_cursor_next_async_cb (GObject      *source,
 	                                             &error);
 
 	if (finished == 1 && next == next_to_cancel) {
-		g_assert (error != NULL);
+		g_assert_no_error (error);
 		g_print ("Got Cancellation GError\n");
 	} else {
 		g_assert_no_error (error);



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