From: Maxim Levitsky Date: Mon, 19 Oct 2020 16:37:00 +0000 (+0300) Subject: libqtest: fix the order of buffered events X-Git-Tag: v5.2.0-rc0~36^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f9d519c0d37b8af0b228a4ed49d33ea095e9eb7;p=thirdparty%2Fqemu.git libqtest: fix the order of buffered events By a mistake I added the pending events in a wrong order. Fix this by using g_list_append. Signed-off-by: Maxim Levitsky Message-Id: <20201019163702.471239-3-mlevitsk@redhat.com> Signed-off-by: Thomas Huth --- diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c index b9ff29055b1..0e304bdbd15 100644 --- a/tests/qtest/libqtest.c +++ b/tests/qtest/libqtest.c @@ -621,7 +621,7 @@ QDict *qtest_qmp_receive(QTestState *s) return response; } /* Stash the event for a later consumption */ - s->pending_events = g_list_prepend(s->pending_events, response); + s->pending_events = g_list_append(s->pending_events, response); } }