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>
This commit is contained in:
parent
288c31e30d
commit
7f9d519c0d
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue