Received: from eggs.gnu.org ([2001:4830:134:3::10]:47009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzVVB-0000b0-Ks for qemu-devel@nongnu.org; Wed, 26 Oct 2016 17:12:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzVV8-0002zu-Bg for qemu-devel@nongnu.org; Wed, 26 Oct 2016 17:12:49 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60559) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzVV8-0002yt-5h for qemu-devel@nongnu.org; Wed, 26 Oct 2016 17:12:46 -0400 From: Eric Blake Date: Wed, 26 Oct 2016 16:12:35 -0500 Message-Id: <1477516358-15039-1-git-send-email-eblake@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/3] qmp output visitor test improvement List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: armbru@redhat.com, ptoscano@redhat.com Well, technically qobject output visitor, but keeping the cover letter subject unchanged helps for continuity Given the threads last week with Pino's claim that we had a memory leak, and Markus' counter-claim that the proposed patch was reverting an earlier double-free fix, I ended up enhancing the testsuite to prove under valgrind whether we indeed have a problem. The good news is that the existing visitor code is correct, but having more tests will help prevent future regression attempts :) v1 was here: https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg05699.html since then: patch 2 is new patch 3 (former 2/2) is rebased (now that it is qobject rather than qmp visitor) and enhanced (list and alternates, in addition to objects) Eric Blake (3): tests: Simplify expected error checking for qmp output qapi: Further enhance visitor virtual walk doc example tests: Enhance qobject output to cover partial visit include/qapi/visitor.h | 41 +++++++++++++++++++---------- tests/test-qobject-output-visitor.c | 51 +++++++++++++++++++++++++++++++------ 2 files changed, 71 insertions(+), 21 deletions(-) -- 2.7.4