From 45cb87c803124a009d401ab959bb4881f84ac4e1 Mon Sep 17 00:00:00 2001 From: John Snow Date: Mon, 10 Sep 2018 18:17:57 +0200 Subject: [PATCH 19/25] tests/test-blockjob-txn: move .exit to .clean RH-Author: John Snow Message-id: <20180910181803.11781-20-jsnow@redhat.com> Patchwork-id: 82097 O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 19/25] tests/test-blockjob-txn: move .exit to .clean Bugzilla: 1626061 RH-Acked-by: Max Reitz RH-Acked-by: Jeffrey Cody RH-Acked-by: Kevin Wolf The exit callback in this test actually only performs cleanup. Signed-off-by: John Snow Reviewed-by: Max Reitz Message-id: 20180906130225.5118-11-jsnow@redhat.com Reviewed-by: Jeff Cody Signed-off-by: Max Reitz (cherry picked from commit d498b2b6d6f5a547593a3123c9ed8967965c0c44) Signed-off-by: John Snow Signed-off-by: Miroslav Rezanina --- tests/test-blockjob-txn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-blockjob-txn.c b/tests/test-blockjob-txn.c index ef29f35..86606f9 100644 --- a/tests/test-blockjob-txn.c +++ b/tests/test-blockjob-txn.c @@ -24,7 +24,7 @@ typedef struct { int *result; } TestBlockJob; -static void test_block_job_exit(Job *job) +static void test_block_job_clean(Job *job) { BlockJob *bjob = container_of(job, BlockJob, job); BlockDriverState *bs = blk_bs(bjob->blk); @@ -73,7 +73,7 @@ static const BlockJobDriver test_block_job_driver = { .user_resume = block_job_user_resume, .drain = block_job_drain, .run = test_block_job_run, - .exit = test_block_job_exit, + .clean = test_block_job_clean, }, }; -- 1.8.3.1