OSDN Git Service

tests: Use error_free_or_abort() where appropriate
authorMarkus Armbruster <armbru@redhat.com>
Tue, 30 Jun 2020 09:03:30 +0000 (11:03 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 2 Jul 2020 04:25:28 +0000 (06:25 +0200)
commit7b8eb7f848fdd808dbd01f6aa7ae42fd8c64e4b4
tree8509cd5889e30feca6a3ad26ea1735e7e4b108e6
parentd8da9e71b6c79c2899c08bb168cd0ae88da70596
tests: Use error_free_or_abort() where appropriate

Replace

    g_assert(err != NULL);
    error_free(err);
    err = NULL;

and variations thereof by

    error_free_or_abort(&err);

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200630090351.1247703-6-armbru@redhat.com>
tests/check-block-qdict.c
tests/check-qom-proplist.c
tests/test-base64.c
tests/test-bdrv-graph-mod.c
tests/test-block-iothread.c
tests/test-crypto-cipher.c
tests/test-io-task.c