[libgdata] tests: Add an extra assertion about pagination
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] tests: Add an extra assertion about pagination
- Date: Fri, 16 May 2014 09:16:57 +0000 (UTC)
commit 931a8fa0ca788496bb3c783328e27e1b8a7bc4c2
Author: Philip Withnall <philip tecnocode co uk>
Date: Fri May 16 10:16:10 2014 +0100
tests: Add an extra assertion about pagination
Coverity issue: #59763
gdata/tests/general.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdata/tests/general.c b/gdata/tests/general.c
index f7f1b55..fbb2c84 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]