aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Levitsky <mlevitsk@redhat.com>2020-10-19 19:37:00 +0300
committerThomas Huth <thuth@redhat.com>2020-10-24 07:36:53 +0200
commit7f9d519c0d37b8af0b228a4ed49d33ea095e9eb7 (patch)
treeb091d2a4fa23a5003c6fe4ab96d9e25445777d7f
parent288c31e30d522dbac4d7998ca254735393c59307 (diff)
downloadqemu-7f9d519c0d37b8af0b228a4ed49d33ea095e9eb7.zip
qemu-7f9d519c0d37b8af0b228a4ed49d33ea095e9eb7.tar.gz
qemu-7f9d519c0d37b8af0b228a4ed49d33ea095e9eb7.tar.bz2
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 <mlevitsk@redhat.com> Message-Id: <20201019163702.471239-3-mlevitsk@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r--tests/qtest/libqtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c
index b9ff290..0e304bd 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);
}
}