[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v12 34/36] qapi: Add positive tests to qapi-sche
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH v12 34/36] qapi: Add positive tests to qapi-schema-test |
Date: |
Mon, 23 Nov 2015 08:34:27 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Eric Blake <address@hidden> writes:
> On 11/18/2015 01:53 AM, Eric Blake wrote:
>> Add positive tests to qapi-schema-test for things that were
>> made possible by recent patches but which caused compile errors
>> due to collisions prior to that point. The focus is mainly on
>> collisions due to names we have reserved for qapi, even though
>> it is unlikely that anyone will want to abuse these names in
>> actual .json files.
>>
>> The added tests includes:
>> Use of a member name ending in 'Kind' or 'List' [1, 3]
>
> Violates our coding convention of all lower case, so not worth testing.
>
>> Use of a type name starting with 'has_' [1, 4]
>
> Ditto.
>
>> Use of a type named 'u' [1, 5]
>
> Ditto.
>
>> Use of a union branch name of 'u' [2, 5]
>> Use of a union branch name starting with 'has_' [2, 4]
>
> Leaving just these two feels pretty weak. I think I'll just drop this
> patch from my queue entirely (it was great at proving that recent layout
> improvements worked, but it's not the end of the world to lose it
> entirely, especially now that v13 is starting to enforce naming
> conventions except for a few whitelisted names, and I don't want to make
> the whitelist longer just for the testsuite).
Makes sense.
[...]
- [Qemu-devel] [PATCH v12 23/36] qapi: Remove dead tests for max collision, (continued)
- [Qemu-devel] [PATCH v12 23/36] qapi: Remove dead tests for max collision, Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 32/36] qapi: Inline _make_implicit_tag(), Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 30/36] qapi: Convert QType into qapi builtin enum type, Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 34/36] qapi: Add positive tests to qapi-schema-test, Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 36/36] qapi: Shorter visits of optional fields, Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 22/36] qapi: Don't let implicit enum MAX member collide, Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 24/36] cpu: Convert CpuInfo into flat union, Eric Blake, 2015/11/18