Received: from eggs.gnu.org ([2001:4830:134:3::10]:41440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhhp5-0005Lw-Uf for qemu-devel@nongnu.org; Thu, 01 Oct 2015 13:39:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zhhp1-0001fx-62 for qemu-devel@nongnu.org; Thu, 01 Oct 2015 13:39:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhhp1-0001fj-0v for qemu-devel@nongnu.org; Thu, 01 Oct 2015 13:39:11 -0400 From: Markus Armbruster References: <1443565276-4535-1-git-send-email-eblake@redhat.com> <1443565276-4535-6-git-send-email-eblake@redhat.com> <87twqa24e5.fsf@blackfin.pond.sub.org> <560D30C9.1000209@redhat.com> <87lhbmtxet.fsf@blackfin.pond.sub.org> <560D541E.2060602@redhat.com> Date: Thu, 01 Oct 2015 19:39:06 +0200 In-Reply-To: <560D541E.2060602@redhat.com> (Eric Blake's message of "Thu, 1 Oct 2015 09:41:18 -0600") Message-ID: <87oagimqth.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v7 05/18] qapi: Test for various name collisions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Michael Roth , marcandre.lureau@redhat.com, qemu-devel@nongnu.org, ehabkost@redhat.com Eric Blake writes: > On 10/01/2015 09:34 AM, Markus Armbruster wrote: > >>>> Do we have a test for the simpler case of a struct inheriting from >>>> itself? >>> >>> Not here, but in v5 16/46. That's because it asserts, but while it was >>> easy to fix up in the QAPISchema.check(), I did not find it worth the >>> churn to fix it up in the ad hoc parse code just to rip it back out >>> later, and the QAPISchema.check() code requires several scaffolding >>> patches (so it wasn't as easy as fixing the union 'type' clash asserts). >>> Tracking an assertion failure for any more than one patch at a time is >>> horrible (as any other change to qapi.py changes line numbers that >>> affect the assertion failure). >> >> Well, I'm happy to take a test for inheritance loops, or leave it >> uncovered for now, but I don't want to take a non-working test of an >> unimplemented obscure case "union" without a test for the implemented >> case "struct". >> >> I can: >> >> A. Drop this test case. >> >> B. Replace it with the test case from 16/46. >> >> C. Add the test case from 16/46 and keep this one. >> >> I very much prefer B. You? > > If we go with B, we'd have an assertion failure that does not get fixed > by 6/18, and therefore is subject to churn until the fix is present. > > I'm leaning towards A (calling self-inheritance a name collision is a > bit of a stretch in the first place; and leaving it untested until 16/46 > goes in doesn't hurt). Okay, A. it is. I pushed to branch qapi-next at http://repo.or.cz/qemu/armbru.git