• E
    qapi: Add tests of complex objects within alternate · 68d07839
    Eric Blake 提交于
    Upcoming patches will adjust how we visit an object branch of an
    alternate; but we were completely lacking testsuite coverage.
    Rectify this, so that the future patches will be able to highlight
    the changes and still prove that we avoided regressions.
    
    In particular, the use of a flat union UserDefFlatUnion rather
    than a simple struct UserDefA as the branch will give us coverage
    of an object with variants.  And visiting an alternate as both
    the top level and as a nested member gives confidence in correct
    memory allocation handling, especially if the test is run under
    valgrind.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Message-Id: <1455778109-6278-5-git-send-email-eblake@redhat.com>
    Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
    68d07839
test-qmp-output-visitor.c 29.5 KB