summaryrefslogtreecommitdiff
path: root/gdata/tests/general.c
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-16 10:16:10 +0100
commit931a8fa0ca788496bb3c783328e27e1b8a7bc4c2 (patch)
tree8d6aaeadec045df9be6d34e3d02a728777f13c95 /gdata/tests/general.c
parentc1a064d48b0fe2fcc006894997b15b8e9e92deae (diff)
downloadlibgdata-931a8fa0ca788496bb3c783328e27e1b8a7bc4c2.tar.gz
tests: Add an extra assertion about pagination
Coverity issue: #59763
Diffstat (limited to 'gdata/tests/general.c')
-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 f7f1b55b..fbb2c849 100644
--- a/gdata/tests/general.c
+++ b/gdata/tests/general.c
@@ -1391,7 +1391,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"))
@@ -1405,7 +1405,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