Commit e4dad427 authored by John Snow's avatar John Snow Committed by Max Reitz
Browse files

tests/test-blockjob-txn: move .exit to .clean



The exit callback in this test actually only performs cleanup.

Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
Message-id: 20180906130225.5118-11-jsnow@redhat.com
Reviewed-by: default avatarJeff Cody <jcody@redhat.com>
Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
parent 977d26fd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,
    },
};