diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-blockjob.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-blockjob.c b/tests/test-blockjob.c index 4eeb184..7519847 100644 --- a/tests/test-blockjob.c +++ b/tests/test-blockjob.c @@ -367,7 +367,9 @@ static void test_cancel_concluded(void) aio_poll(qemu_get_aio_context(), true); assert(job->status == JOB_STATUS_PENDING); + aio_context_acquire(job->aio_context); job_finalize(job, &error_abort); + aio_context_release(job->aio_context); assert(job->status == JOB_STATUS_CONCLUDED); cancel_common(s); |