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