[glib: 1/5] tests: Rearrange assertions in the g_queue_clear_full() test
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/5] tests: Rearrange assertions in the g_queue_clear_full() test
- Date: Thu, 2 May 2019 14:51:44 +0000 (UTC)
commit 2aa71ab63b4457324c53700ab38ed83c3ccf7d5e
Author: Philip Withnall <withnall endlessm com>
Date: Tue Apr 30 10:23:47 2019 +0100
tests: Rearrange assertions in the g_queue_clear_full() test
This makes it a bit clearer that we expect the queue to be empty as a
result of calling g_queue_clear_full(), rather than as a result of any
of the later cleanup.
Signed-off-by: Philip Withnall <withnall endlessm com>
glib/tests/queue.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/glib/tests/queue.c b/glib/tests/queue.c
index b2faeb14a..f9e9281fb 100644
--- a/glib/tests/queue.c
+++ b/glib/tests/queue.c
@@ -1083,15 +1083,13 @@ test_clear_full (void)
g_assert_true (three->freed);
g_assert_true (four->freed);
+ g_assert_true (g_queue_is_empty (queue));
check_integrity (queue);
g_slice_free (QueueItem, one);
g_slice_free (QueueItem, two);
g_slice_free (QueueItem, three);
g_slice_free (QueueItem, four);
-
- g_assert_true (g_queue_is_empty (queue));
-
g_queue_free (queue);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]