]> git.proxmox.com Git - mirror_qemu.git/commit - tests/test-string-output-visitor.c
tests: Clean up test-string-output-visitor
authorEric Blake <eblake@redhat.com>
Thu, 9 Jun 2016 16:48:41 +0000 (10:48 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 6 Jul 2016 08:52:04 +0000 (10:52 +0200)
commita8fff94d28bd2f0db37b2194cbfa197ba998b7f7
tree9737822bf70c3993d59e74dfc4f578b3e6f563bd
parent1830f22a6777cedaccd67a08f675d30f7a85ebfd
tests: Clean up test-string-output-visitor

Use &error_abort and error_free_or_abort() in more places, use
the generated qapi_free_intList() instead of open-coding it,
reduce the scope of some variables, avoid code duplication
during test setup with visitor_output_setup_internal(), and
copy the visitor_reset() concept from the qmp-output test to
the string-output test.

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