yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-tests-test-blockjob-txn-move-.exit-to-.clean.patch

ae23c9
From 1b01d1f1273a9307c46fb7c72a407b8ab0a16f77 Mon Sep 17 00:00:00 2001
ae23c9
From: John Snow <jsnow@redhat.com>
ae23c9
Date: Tue, 25 Sep 2018 22:34:25 +0100
ae23c9
Subject: [PATCH 22/28] tests/test-blockjob-txn: move .exit to .clean
ae23c9
ae23c9
RH-Author: John Snow <jsnow@redhat.com>
ae23c9
Message-id: <20180925223431.24791-20-jsnow@redhat.com>
ae23c9
Patchwork-id: 82282
ae23c9
O-Subject: [RHEL8/rhel qemu-kvm PATCH 19/25] tests/test-blockjob-txn: move .exit to .clean
ae23c9
Bugzilla: 1632939
ae23c9
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
ae23c9
RH-Acked-by: Max Reitz <mreitz@redhat.com>
ae23c9
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
ae23c9
ae23c9
The exit callback in this test actually only performs cleanup.
ae23c9
ae23c9
Signed-off-by: John Snow <jsnow@redhat.com>
ae23c9
Reviewed-by: Max Reitz <mreitz@redhat.com>
ae23c9
Message-id: 20180906130225.5118-11-jsnow@redhat.com
ae23c9
Reviewed-by: Jeff Cody <jcody@redhat.com>
ae23c9
Signed-off-by: Max Reitz <mreitz@redhat.com>
ae23c9
(cherry picked from commit e4dad4275d51b594c8abbe726a4927f6f388e427)
ae23c9
Signed-off-by: John Snow <jsnow@redhat.com>
ae23c9
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ae23c9
---
ae23c9
 tests/test-blockjob-txn.c | 4 ++--
ae23c9
 1 file changed, 2 insertions(+), 2 deletions(-)
ae23c9
ae23c9
diff --git a/tests/test-blockjob-txn.c b/tests/test-blockjob-txn.c
ae23c9
index ef29f35..86606f9 100644
ae23c9
--- a/tests/test-blockjob-txn.c
ae23c9
+++ b/tests/test-blockjob-txn.c
ae23c9
@@ -24,7 +24,7 @@ typedef struct {
ae23c9
     int *result;
ae23c9
 } TestBlockJob;
ae23c9
 
ae23c9
-static void test_block_job_exit(Job *job)
ae23c9
+static void test_block_job_clean(Job *job)
ae23c9
 {
ae23c9
     BlockJob *bjob = container_of(job, BlockJob, job);
ae23c9
     BlockDriverState *bs = blk_bs(bjob->blk);
ae23c9
@@ -73,7 +73,7 @@ static const BlockJobDriver test_block_job_driver = {
ae23c9
         .user_resume   = block_job_user_resume,
ae23c9
         .drain         = block_job_drain,
ae23c9
         .run           = test_block_job_run,
ae23c9
-        .exit          = test_block_job_exit,
ae23c9
+        .clean         = test_block_job_clean,
ae23c9
     },
ae23c9
 };
ae23c9
 
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9