• M
    test-qga: Clean up how we test QGA synchronization · e2f64a68
    Markus Armbruster 提交于
    To permit recovering from arbitrary JSON parse errors, the JSON parser
    resets itself on lexical errors.  We recommend sending a 0xff byte for
    that purpose, and test-qga covers this usage since commit 5229564b.
    That commit had to add an ugly hack to qmp_fd_vsend() to make capable
    of sending this byte (it's designed to send only valid JSON).
    
    The previous commit added a way to send arbitrary text.  Put that to
    use for this purpose, and drop the hack from qmp_fd_vsend().
    Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
    Reviewed-by: NEric Blake <eblake@redhat.com>
    Message-Id: <20180823164025.12553-8-armbru@redhat.com>
    e2f64a68
libqtest.h 24.8 KB