summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2014-05-16 10:16:10 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2014-05-27 21:55:20 +0100
commit24b519d9b1460c7db88d08ab4e839a89d46adb3d (patch)
tree1b6c95e2718a00ea36631c79d55d71de62fa9423
parent8276acd6bd11a08663fd78a8bcf4a1e06b996778 (diff)
downloadlibgdata-24b519d9b1460c7db88d08ab4e839a89d46adb3d.tar.gz
tests: Add an extra assertion about pagination
Coverity issue: #59763
-rw-r--r--gdata/tests/general.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdata/tests/general.c b/gdata/tests/general.c
index 52f9b32b..75d4dd11 100644
--- a/gdata/tests/general.c
+++ b/gdata/tests/general.c
@@ -1225,7 +1225,7 @@ test_query_etag (void)
#define CHECK_ETAG(C) \
gdata_query_set_etag (query, "foobar"); \
- (C); \
+ C; \
g_assert (gdata_query_get_etag (query) == NULL);
CHECK_ETAG (gdata_query_set_q (query, "q"))
@@ -1239,7 +1239,7 @@ test_query_etag (void)
CHECK_ETAG (gdata_query_set_is_strict (query, TRUE))
CHECK_ETAG (gdata_query_set_max_results (query, 1000))
CHECK_ETAG (gdata_query_next_page (query))
- CHECK_ETAG (gdata_query_previous_page (query))
+ CHECK_ETAG (g_assert (gdata_query_previous_page (query)))
#undef CHECK_ETAG