Received: from eggs.gnu.org ([2001:4830:134:3::10]:36588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c0Ikr-0007oa-1H for qemu-devel@nongnu.org; Fri, 28 Oct 2016 21:48:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c0Iko-0007Z3-Os for qemu-devel@nongnu.org; Fri, 28 Oct 2016 21:48:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58352) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c0Iko-0007Yk-Jt for qemu-devel@nongnu.org; Fri, 28 Oct 2016 21:48:14 -0400 From: Eduardo Habkost Date: Fri, 28 Oct 2016 23:48:00 -0200 Message-Id: <1477705687-31175-2-git-send-email-ehabkost@redhat.com> In-Reply-To: <1477705687-31175-1-git-send-email-ehabkost@redhat.com> References: <1477705687-31175-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH v4 1/8] tests: check-qom-proplist: Remove duplicate "bv" property List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Markus Armbruster , =?UTF-8?q?Andreas=20F=C3=A4rber?= , "Daniel P. Berrange" , Igor Mammedov The object_property_add_bool() call in dummy_init() is always failing because there is an existing "bv" class property. We need to remove either the "bv" class property or the "bv" instance property. Remove the class property so both object properties and class properties are covered by the test code. Reviewed-by: Igor Mammedov Signed-off-by: Eduardo Habkost --- Changes series v2 -> v3: * Patch imported from "tests: A few check-qom-proplist fixes" series * Reworded commit message for clarity Changes series v3 -> v4: * (none) --- tests/check-qom-proplist.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/check-qom-proplist.c b/tests/check-qom-proplist.c index a16cefc..693dc4c 100644 --- a/tests/check-qom-proplist.c +++ b/tests/check-qom-proplist.c @@ -129,10 +129,6 @@ static void dummy_init(Object *obj) static void dummy_class_init(ObjectClass *cls, void *data) { - object_class_property_add_bool(cls, "bv", - dummy_get_bv, - dummy_set_bv, - NULL); object_class_property_add_str(cls, "sv", dummy_get_sv, dummy_set_sv, -- 2.7.4