[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH v14 07/19] qapi: don't pass two cop
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH v14 07/19] qapi: don't pass two copies of TestInputVisitorData to tests |
Date: |
Wed, 28 Sep 2016 10:35:38 +0100 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
On Tue, Sep 27, 2016 at 05:12:04PM -0500, Eric Blake wrote:
> On 09/27/2016 05:10 PM, Eric Blake wrote:
> > On 09/27/2016 08:13 AM, Daniel P. Berrange wrote:
> >> The input_visitor_test_add() method was accepting an instance
> >> of 'TestInputVisitorData' and passing it as the 'user_data'
> >> parameter to test functions. The main 'TestInputVisitorData'
> >> instance that was actually used, was meanwhile being allocated
> >> automatically by the test framework fixture setup.
> >>
> >> Signed-off-by: Daniel P. Berrange <address@hidden>
> >> ---
> >> tests/test-qobject-input-visitor.c | 76
> >> ++++++++++++++++----------------------
> >> 1 file changed, 32 insertions(+), 44 deletions(-)
> >>
> >
> > Reviewed-by: Eric Blake <address@hidden>
> >
>
> Having said that, I note that ALL callers now pass NULL for user_data.
> If you plan on using it later in the series for something other than
> NULL for some of the (new?) tests added at that point, it would be wise
> to say so in the commit message; if not, I would suggest eliminating the
> parameter altogether.
Yep, later patches use this parameter for real, so I needed to move
this bogus usage out of the way.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
[Qemu-block] [PATCH v14 08/19] qapi: permit scalar type conversions in QObjectInputVisitor, Daniel P. Berrange, 2016/09/27
[Qemu-block] [PATCH v14 06/19] qapi: rename QmpOutputVisitor to QObjectOutputVisitor, Daniel P. Berrange, 2016/09/27
[Qemu-block] [PATCH v14 09/19] qapi: permit auto-creating single element lists, Daniel P. Berrange, 2016/09/27
[Qemu-block] [PATCH v14 10/19] qapi: permit auto-creating nested structs, Daniel P. Berrange, 2016/09/27
[Qemu-block] [PATCH v14 11/19] qapi: add integer range support for QObjectInputVisitor, Daniel P. Berrange, 2016/09/27
[Qemu-block] [PATCH v14 13/19] qom: support non-scalar properties with -object, Daniel P. Berrange, 2016/09/27
[Qemu-block] [PATCH v14 14/19] hmp: support non-scalar properties with object_add, Daniel P. Berrange, 2016/09/27
[Qemu-block] [PATCH v14 12/19] qapi: allow QObjectInputVisitor to be created with QemuOpts, Daniel P. Berrange, 2016/09/27
[Qemu-block] [PATCH v14 16/19] block: convert crypto driver to use QObjectInputVisitor, Daniel P. Berrange, 2016/09/27
[Qemu-block] [PATCH v14 15/19] numa: convert to use QObjectInputVisitor for -numa, Daniel P. Berrange, 2016/09/27