summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/libtracker-data/tracker-sparql-test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 77752bcaf..2975bb066 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -348,9 +348,7 @@ check_result (TrackerDBCursor *cursor,
gchar *results;
GError *nerror = NULL;
- if (test_info->expect_query_error) {
- g_assert_true (error != NULL);
- } else {
+ if (!test_info->expect_query_error) {
g_assert_no_error (error);
}
@@ -400,8 +398,10 @@ check_result (TrackerDBCursor *cursor,
g_string_append (test_results, "\n");
}
}
- } else if (test_info->expect_query_error) {
- g_assert_true (error != NULL && error->domain == TRACKER_SPARQL_ERROR);
+ }
+
+ if (test_info->expect_query_error) {
+ g_assert_true (error != NULL);
g_string_free (test_results, TRUE);
g_free (results);
return;