From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxAiK-0001wc-1t for qemu-devel@nongnu.org; Thu, 20 Oct 2016 06:36:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxAiG-00051f-51 for qemu-devel@nongnu.org; Thu, 20 Oct 2016 06:36:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37314) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bxAiF-00051X-Vr for qemu-devel@nongnu.org; Thu, 20 Oct 2016 06:36:40 -0400 From: "Dr. David Alan Gilbert (git)" Date: Thu, 20 Oct 2016 11:36:34 +0100 Message-Id: <20161020103636.22228-1-dgilbert@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] Silence test-vmstate errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, pbonzini@redhat.com, peter.maydell@linaro.org, armbru@redhat.com From: "Dr. David Alan Gilbert" In a1771070e7 I added an error message during migration loading so you could see the field that failed to load. Unfortunately this triggers during the expected-failure case testing in tests/test-vmstate. This silences that error by providing a dummy monitor pointer that doesn't output anything and then selecting it around the noisy part of the test. (I couldn't find anywhere better than libqtest.h for the declaration but stubs doesn't have it's own header; is it worth creating one just for that?) Dave Dr. David Alan Gilbert (2): tests/stubs: Add a dummy, silent monitor test-vmstate: Silence expected errors stubs/mon-is-qmp.c | 9 +++++++++ tests/libqtest.h | 1 + tests/test-vmstate.c | 8 ++++++++ 3 files changed, 18 insertions(+) -- 2.9.3