mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
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>
This commit is contained in:
parent
22d4a44cd6
commit
2aa71ab63b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user