Received: from eggs.gnu.org ([2001:4830:134:3::10]:33956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7i08-0005d5-Pe for qemu-devel@nongnu.org; Wed, 03 Oct 2018 10:19:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7i05-00045c-Ej for qemu-devel@nongnu.org; Wed, 03 Oct 2018 10:19:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37094) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g7i05-00044i-7k for qemu-devel@nongnu.org; Wed, 03 Oct 2018 10:19:41 -0400 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 3 Oct 2018 18:18:28 +0400 Message-Id: <20181003141833.21493-8-marcandre.lureau@redhat.com> In-Reply-To: <20181003141833.21493-1-marcandre.lureau@redhat.com> References: <20181003141833.21493-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 07/12] tests/qom-proplist: check duplicate "bv" property registration failed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= "bv" is already a class property. Signed-off-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Paolo Bonzini --- tests/check-qom-proplist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/check-qom-proplist.c b/tests/check-qom-proplist.c index 92898e1520..0f6d9c1ce3 100644 --- a/tests/check-qom-proplist.c +++ b/tests/check-qom-proplist.c @@ -125,10 +125,13 @@ static char *dummy_get_sv(Object *obj, =20 static void dummy_init(Object *obj) { + Error *err =3D NULL; + object_property_add_bool(obj, "bv", dummy_get_bv, dummy_set_bv, - NULL); + &err); + error_free_or_abort(&err); } =20 =20 --=20 2.19.0.271.gfe8321ec05