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:
Philip Withnall 2019-04-30 10:23:47 +01:00
parent 22d4a44cd6
commit 2aa71ab63b

View File

@ -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);
}