[libgdata/libgdata-0-14] tests: Add an extra assertion about pagination
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/libgdata-0-14] tests: Add an extra assertion about pagination
- Date: Tue, 27 May 2014 21:14:18 +0000 (UTC)
commit 24b519d9b1460c7db88d08ab4e839a89d46adb3d
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 52f9b32..75d4dd1 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]