diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-06-30 11:03:30 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-07-02 06:25:28 +0200 |
commit | 7b8eb7f848fdd808dbd01f6aa7ae42fd8c64e4b4 (patch) | |
tree | 8509cd5889e30feca6a3ad26ea1735e7e4b108e6 /tests/test-base64.c | |
parent | d8da9e71b6c79c2899c08bb168cd0ae88da70596 (diff) |
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>
Diffstat (limited to 'tests/test-base64.c')
-rw-r--r-- | tests/test-base64.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test-base64.c b/tests/test-base64.c index ec122ceba5..a7f722c459 100644 --- a/tests/test-base64.c +++ b/tests/test-base64.c @@ -54,10 +54,9 @@ static void test_base64_bad(const char *input, &len, &err); - g_assert(err != NULL); + error_free_or_abort(&err); g_assert(actual == NULL); g_assert_cmpint(len, ==, 0); - error_free(err); } |