Received: from eggs.gnu.org ([2001:4830:134:3::10]:57815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbABL-0005KD-Ud for qemu-devel@nongnu.org; Thu, 26 Mar 2015 11:58:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbABH-00013j-UF for qemu-devel@nongnu.org; Thu, 26 Mar 2015 11:58:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbABH-00013c-Ne for qemu-devel@nongnu.org; Thu, 26 Mar 2015 11:58:51 -0400 From: Markus Armbruster References: <1427227433-5030-1-git-send-email-eblake@redhat.com> <1427227433-5030-7-git-send-email-eblake@redhat.com> <87a8yz51uc.fsf@blackfin.pond.sub.org> <55140EFD.805@redhat.com> Date: Thu, 26 Mar 2015 16:58:47 +0100 In-Reply-To: <55140EFD.805@redhat.com> (Eric Blake's message of "Thu, 26 Mar 2015 07:51:57 -0600") Message-ID: <87k2y3yclk.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v5 06/28] qapi: Add some union tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, famz@redhat.com, qemu-devel@nongnu.org, wenchaoqemu@gmail.com, lcapitulino@redhat.com Eric Blake writes: > On 03/26/2015 07:23 AM, Markus Armbruster wrote: >> One more: >> >> [...] >>> diff --git a/tests/qapi-schema/alternate-conflict-string.json >>> b/tests/qapi-schema/alternate-conflict-string.json >>> new file mode 100644 >>> index 0000000..5fd1a47 >>> --- /dev/null >>> +++ b/tests/qapi-schema/alternate-conflict-string.json >>> @@ -0,0 +1,8 @@ >>> +# FIXME: we should reject anonymous unions with multiple >>> string-like branches >>> +{ 'enum': 'Enum', >>> + 'data': [ 'hello', 'world' ] } >>> +{ 'union': 'MyUnion', >>> + 'discriminator': {}, >>> + 'data': { 'one': 'str', >>> + 'two': 'Enum' } } >>> + >> >> /home/armbru/work/qemu/.git/rebase-apply/patch:325: new blank line at EOF. > > Huh. I thought I had git set up to reject me from making commits like > that locally, but obviously not. There's another one in PATCH 13: /home/armbru/work/qemu/.git/rebase-apply/patch:156: new blank line at EOF. > http://wiki.qemu.org/Contribute/SubmitAPatch should probably mention the > magic one-time setup to use to turn this type of checking on... Feel free to add it :)