qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@gmail.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>, QEMU <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] tests: add qmp/missing-any-arg test
Date: Wed, 31 Oct 2018 19:31:12 +0400	[thread overview]
Message-ID: <CAJ+F1CL3uL-TGqAg8-WcHTNOhvPFZzOdQDS4Pp3VfWN3DDd01A@mail.gmail.com> (raw)
In-Reply-To: <87d0rqqh0g.fsf@dusky.pond.sub.org>

Hi
On Wed, Oct 31, 2018 at 7:22 PM Markus Armbruster <armbru@redhat.com> wrote:
>
> Marc-André Lureau <marcandre.lureau@redhat.com> writes:
>
> > test_qmp_missing_any_arg() is about a bug in infrastructure used by
> > the QMP core, fixed in commit c489780203.  We covered the bug in
> > infrastructure unit tests (commit bce3035a44).  I wrote that test
> > earlier, to cover QMP level as well, the test could go into qmp-test.
>
> The last sentence is confusing.  What about replacing it by "Let's test
> it at the QMP level as well"?

sure, I assume you do that on commit thanks

>
> > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> > Reviewed-by: Thomas Huth <thuth@redhat.com>
> > Signed-off-by: Thomas Huth <thuth@redhat.com>
> > ---
> >  tests/qmp-test.c | 14 ++++++++++++++
> >  1 file changed, 14 insertions(+)
> >
> > diff --git a/tests/qmp-test.c b/tests/qmp-test.c
> > index 6c419f6023..7517be4654 100644
> > --- a/tests/qmp-test.c
> > +++ b/tests/qmp-test.c
> > @@ -318,6 +318,19 @@ static void test_qmp_preconfig(void)
> >      qtest_quit(qs);
> >  }
> >
> > +static void test_qmp_missing_any_arg(void)
> > +{
> > +    QTestState *qts;
> > +    QDict *resp;
> > +
> > +    qts = qtest_init(common_args);
> > +    resp = qtest_qmp(qts, "{'execute': 'qom-set', 'arguments':"
> > +                     " { 'path': '/machine', 'property': 'rtc-time' } }");
> > +    g_assert_nonnull(resp);
> > +    qmp_assert_error_class(resp, "GenericError");
> > +    qtest_quit(qts);
> > +}
> > +
> >  int main(int argc, char *argv[])
> >  {
> >      g_test_init(&argc, &argv, NULL);
> > @@ -325,6 +338,7 @@ int main(int argc, char *argv[])
> >      qtest_add_func("qmp/protocol", test_qmp_protocol);
> >      qtest_add_func("qmp/oob", test_qmp_oob);
> >      qtest_add_func("qmp/preconfig", test_qmp_preconfig);
> > +    qtest_add_func("qmp/missing-any-arg", test_qmp_missing_any_arg);
> >
> >      return g_test_run();
> >  }
>
> Patch looks good to me.
>


-- 
Marc-André Lureau

  reply	other threads:[~2018-10-31 15:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-29 14:57 [Qemu-devel] [PATCH] tests: add qmp/missing-any-arg test Marc-André Lureau
2018-10-31 15:21 ` Markus Armbruster
2018-10-31 15:31   ` Marc-André Lureau [this message]
2018-10-31 16:43     ` Markus Armbruster

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=CAJ+F1CL3uL-TGqAg8-WcHTNOhvPFZzOdQDS4Pp3VfWN3DDd01A@mail.gmail.com \
    --to=marcandre.lureau@gmail.com \
    --cc=armbru@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /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).