[tracker] tracker-steroids tests: when cancelled, an error is expected
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-steroids tests: when cancelled, an error is expected
- Date: Thu, 19 Aug 2010 16:56:29 +0000 (UTC)
commit c49788767d4500cf7de2cf0f9b154ff26ae07498
Author: Aleksander Morgado <aleksander lanedo com>
Date: Thu Aug 19 18:56:18 2010 +0200
tracker-steroids tests: when cancelled, an error is expected
tests/tracker-steroids/tracker-test.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tests/tracker-steroids/tracker-test.c b/tests/tracker-steroids/tracker-test.c
index 16af31a..720819f 100644
--- a/tests/tracker-steroids/tracker-test.c
+++ b/tests/tracker-steroids/tracker-test.c
@@ -460,7 +460,8 @@ cancel_query_cb (GObject *source_object,
tracker_sparql_connection_query_finish (connection, result, &error);
- g_assert_no_error (error);
+ /* An error should be returned (cancelled!) */
+ g_assert (error);
}
static void
@@ -537,7 +538,8 @@ cancel_update_cb (GObject *source_object,
tracker_sparql_connection_update_finish (connection, result, &error);
- g_assert_no_error (error);
+ /* An error should be returned (cancelled!) */
+ g_assert (error);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]