Merge branch 'mcatanzaro/queue' into 'master'

tests: Fix copy/paste error in queue test

See merge request GNOME/glib!1995
This commit is contained in:
Philip Withnall 2021-03-16 18:11:55 +00:00
commit 2696384e0e

View File

@ -435,7 +435,7 @@ random_test (gconstpointer d)
g_assert (g_queue_peek_head (q) == NULL); g_assert (g_queue_peek_head (q) == NULL);
break; break;
case PEEK_TAIL: case PEEK_TAIL:
if (qinf->head) if (qinf->tail)
g_assert (qinf->tail->data == g_queue_peek_tail (q)); g_assert (qinf->tail->data == g_queue_peek_tail (q));
else else
g_assert (g_queue_peek_tail (q) == NULL); g_assert (g_queue_peek_tail (q) == NULL);