projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d402c98
)
tests-blockjob: Use error_free_or_abort()
author
Markus Armbruster
<armbru@redhat.com>
Wed, 4 Dec 2019 09:36:25 +0000
(10:36 +0100)
committer
Markus Armbruster
<armbru@redhat.com>
Wed, 18 Dec 2019 07:36:16 +0000
(08:36 +0100)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <
20191204093625
.14836-19-armbru@redhat.com>
tests/test-blockjob.c
patch
|
blob
|
history
diff --git
a/tests/test-blockjob.c
b/tests/test-blockjob.c
index e670a20617eddb520f929d46e5c7d82cad46a532..4eeb184caf8ec175948aaeace2a2caf1503258f1 100644
(file)
--- a/
tests/test-blockjob.c
+++ b/
tests/test-blockjob.c
@@
-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;