tests-blockjob: Use error_free_or_abort()

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20191204093625.14836-19-armbru@redhat.com>
This commit is contained in:
Markus Armbruster 2019-12-04 10:36:25 +01:00
parent d402c98396
commit 0cf9e2b4f8

View File

@ -48,9 +48,8 @@ static BlockJob *mk_job(BlockBackend *blk, const char *id,
g_assert_cmpstr(job->job.id, ==, blk_name(blk));
}
} else {
g_assert_nonnull(err);
error_free_or_abort(&err);
g_assert_null(job);
error_free(err);
}
return job;