54 lines
1.8 KiB
Diff
54 lines
1.8 KiB
Diff
From 1b01d1f1273a9307c46fb7c72a407b8ab0a16f77 Mon Sep 17 00:00:00 2001
|
|
From: John Snow <jsnow@redhat.com>
|
|
Date: Tue, 25 Sep 2018 22:34:25 +0100
|
|
Subject: [PATCH 22/28] tests/test-blockjob-txn: move .exit to .clean
|
|
|
|
RH-Author: John Snow <jsnow@redhat.com>
|
|
Message-id: <20180925223431.24791-20-jsnow@redhat.com>
|
|
Patchwork-id: 82282
|
|
O-Subject: [RHEL8/rhel qemu-kvm PATCH 19/25] tests/test-blockjob-txn: move .exit to .clean
|
|
Bugzilla: 1632939
|
|
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
|
|
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
|
The exit callback in this test actually only performs cleanup.
|
|
|
|
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
Reviewed-by: Max Reitz <mreitz@redhat.com>
|
|
Message-id: 20180906130225.5118-11-jsnow@redhat.com
|
|
Reviewed-by: Jeff Cody <jcody@redhat.com>
|
|
Signed-off-by: Max Reitz <mreitz@redhat.com>
|
|
(cherry picked from commit e4dad4275d51b594c8abbe726a4927f6f388e427)
|
|
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
---
|
|
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
|
|
|