]> git.proxmox.com Git - mirror_qemu.git/commit
tests: Use error_free_or_abort() where appropriate
authorMarkus Armbruster <armbru@redhat.com>
Fri, 17 Feb 2017 20:15:54 +0000 (21:15 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 15 Mar 2017 07:52:09 +0000 (08:52 +0100)
commit157db293ebf640d0ad04498ca469dcd3839a4e41
tree1639cf9270f592d0755b6f7a3438d75ab9c7b582
parentd84f714eafedd8bb9d4aaec8b76417bef8e3535e
tests: Use error_free_or_abort() where appropriate

Done with this Coccinelle semantic patch:

    @@
    expression E;
    @@
    -    g_assert(E);
    -    error_free(E);
    +    error_free_or_abort(&E);

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1487362554-5688-1-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/test-qemu-opts.c
tests/test-qobject-output-visitor.c