From: Jeff Cody <jcody@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-block@nongnu.org, berto@igalia.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qemu-iotests: Test streaming with missing job ID
Date: Wed, 17 May 2017 09:26:37 -0400 [thread overview]
Message-ID: <20170517132637.GO19824@localhost.localdomain> (raw)
In-Reply-To: <1494851980-6831-1-git-send-email-kwolf@redhat.com>
On Mon, May 15, 2017 at 02:39:40PM +0200, Kevin Wolf wrote:
> This adds a small test for the image streaming error path for failing
> block_job_create(), which would have found the null pointer dereference
> in commit a170a91f.
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
Reviewed-by: Jeff Cody <jcody@redhat.com>
> tests/qemu-iotests/030 | 4 ++++
> tests/qemu-iotests/030.out | 4 ++--
> 2 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030
> index e00c11b..feee861 100755
> --- a/tests/qemu-iotests/030
> +++ b/tests/qemu-iotests/030
> @@ -147,6 +147,10 @@ class TestSingleDrive(iotests.QMPTestCase):
> result = self.vm.qmp('block-stream', device='nonexistent')
> self.assert_qmp(result, 'error/class', 'GenericError')
>
> + def test_job_id_missing(self):
> + result = self.vm.qmp('block-stream', device='mid')
> + self.assert_qmp(result, 'error/class', 'GenericError')
> +
>
> class TestParallelOps(iotests.QMPTestCase):
> num_ops = 4 # Number of parallel block-stream operations
> diff --git a/tests/qemu-iotests/030.out b/tests/qemu-iotests/030.out
> index 84bfd63..391c857 100644
> --- a/tests/qemu-iotests/030.out
> +++ b/tests/qemu-iotests/030.out
> @@ -1,5 +1,5 @@
> -......................
> +.......................
> ----------------------------------------------------------------------
> -Ran 22 tests
> +Ran 23 tests
>
> OK
> --
> 1.8.3.1
>
>
prev parent reply other threads:[~2017-05-17 13:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-15 12:39 [Qemu-devel] [PATCH] qemu-iotests: Test streaming with missing job ID Kevin Wolf
2017-05-15 12:46 ` Alberto Garcia
2017-05-15 13:05 ` Kevin Wolf
2017-05-15 13:20 ` Alberto Garcia
2017-05-17 7:39 ` Kashyap Chamarthy
2017-05-17 12:11 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2017-05-17 13:26 ` Jeff Cody [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170517132637.GO19824@localhost.localdomain \
--to=jcody@redhat.com \
--cc=berto@igalia.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).