]> git.proxmox.com Git - mirror_qemu.git/commit
tests: Factor out common code in qapi output tests
authorEric Blake <eblake@redhat.com>
Thu, 9 Jun 2016 16:48:42 +0000 (10:48 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 6 Jul 2016 08:52:04 +0000 (10:52 +0200)
commit23d1705f425ca847f11d92e4363cd7f67f369fd8
treec768e3e2068f9ddf8b1aae1b3cbf8f8274b7a4fb
parenta8fff94d28bd2f0db37b2194cbfa197ba998b7f7
tests: Factor out common code in qapi output tests

Create a new visitor_get() function to capture common
actions taken in collecting output from an output visitor,
to make it easier to refactor the output visitors in a
later patch.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1465490926-28625-12-git-send-email-eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
tests/test-qmp-output-visitor.c
tests/test-string-output-visitor.c