Received: from eggs.gnu.org ([2001:4830:134:3::10]:44364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn3Gz-0001LD-QI for qemu-devel@nongnu.org; Tue, 28 Apr 2015 07:01:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yn3Gu-0002Zu-Ap for qemu-devel@nongnu.org; Tue, 28 Apr 2015 07:01:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn3Gu-0002Zp-5Z for qemu-devel@nongnu.org; Tue, 28 Apr 2015 07:01:48 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id A393191E8A for ; Tue, 28 Apr 2015 11:01:47 +0000 (UTC) From: Markus Armbruster References: <1428206887-7921-1-git-send-email-eblake@redhat.com> <1428206887-7921-18-git-send-email-eblake@redhat.com> Date: Tue, 28 Apr 2015 13:01:45 +0200 In-Reply-To: <1428206887-7921-18-git-send-email-eblake@redhat.com> (Eric Blake's message of "Sat, 4 Apr 2015 22:07:48 -0600") Message-ID: <87a8xssehy.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v6 17/36] qapi: Add some expr tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, berto@igalia.co, qemu-devel@nongnu.org Eric Blake writes: > Demonstrate that the qapi generator doesn't deal well with > expressions that aren't up to par. Later patches will improve > the expected results as the generator is made stricter. Only > a few of the the added tests actually behaves sanely at behave > rejecting obvious problems or demonstrating success. > > Note that in some cases, we reject bad QAPI merely because our > pseudo-JSON parser does not yet know how to parse numbers. This > series does not address that, but when a later series adds support > for numeric defaults of integer fields, the testsuite will ensure > that we don't lose the error (and hopefully that the error > message quality is improved). > > Signed-off-by: Eric Blake Reviewed-by: Markus Armbruster