• E
    qapi: More tests of alternate output · 12fafd7c
    Eric Blake 提交于
    The testsuite was only covering that we could output the 'int'
    branch of an alternate (no additional allocation/cleanup required).
    Add a test of the 'str' branch, to make sure that things still
    work even when a branch involves allocation.
    
    Update to modern style of g_new0() over g_malloc0() while
    touching it.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Message-Id: <1446791754-23823-9-git-send-email-eblake@redhat.com>
    Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
    12fafd7c
test-qmp-output-visitor.c 28.5 KB