diff options
author | John Snow <jsnow@redhat.com> | 2016-10-27 12:06:56 -0400 |
---|---|---|
committer | Jeff Cody <jcody@redhat.com> | 2016-11-01 07:55:57 -0400 |
commit | f81e0b453275f7b59a4018093eb93d2173790665 (patch) | |
tree | b1b50b19a456877718965a85f143249b44476181 /tests/test-blockjob.c | |
parent | 559b935f8c5c3139c2e275651da719ffa425cc14 (diff) | |
download | qemu-f81e0b453275f7b59a4018093eb93d2173790665.zip qemu-f81e0b453275f7b59a4018093eb93d2173790665.tar.gz qemu-f81e0b453275f7b59a4018093eb93d2173790665.tar.bz2 |
blockjobs: Allow creating internal jobs
Add the ability to create jobs without an ID.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Message-id: 1477584421-1399-3-git-send-email-jsnow@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'tests/test-blockjob.c')
-rw-r--r-- | tests/test-blockjob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-blockjob.c b/tests/test-blockjob.c index 5b0e934..18bf850 100644 --- a/tests/test-blockjob.c +++ b/tests/test-blockjob.c @@ -31,7 +31,7 @@ static BlockJob *do_test_id(BlockBackend *blk, const char *id, Error *errp = NULL; job = block_job_create(id, &test_block_job_driver, blk_bs(blk), 0, - block_job_cb, NULL, &errp); + BLOCK_JOB_DEFAULT, block_job_cb, NULL, &errp); if (should_succeed) { g_assert_null(errp); g_assert_nonnull(job); |