Received: from eggs.gnu.org ([2001:4830:134:3::10]:45631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWR3K-0008Je-7y for qemu-devel@nongnu.org; Tue, 23 Sep 2014 10:26:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWR3E-0006JL-2L for qemu-devel@nongnu.org; Tue, 23 Sep 2014 10:26:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWR3D-0006IO-Qw for qemu-devel@nongnu.org; Tue, 23 Sep 2014 10:26:43 -0400 From: Markus Armbruster References: <1411165504-18198-1-git-send-email-eblake@redhat.com> <1411165504-18198-8-git-send-email-eblake@redhat.com> Date: Tue, 23 Sep 2014 16:26:34 +0200 In-Reply-To: <1411165504-18198-8-git-send-email-eblake@redhat.com> (Eric Blake's message of "Fri, 19 Sep 2014 16:24:52 -0600") Message-ID: <87zjdqh0px.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v4 07/19] qapi: Add some expr tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Fam Zheng , qemu-devel@nongnu.org, wenchaoqemu@gmail.com, Luiz Capitulino 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 > one of the added tests actually behaves sanely at rejecting > obvious problems. > > 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