From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btwJw-0001GU-Ek for qemu-devel@nongnu.org; Tue, 11 Oct 2016 08:38:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btwJs-0002o6-DE for qemu-devel@nongnu.org; Tue, 11 Oct 2016 08:38:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btwJs-0002nt-6V for qemu-devel@nongnu.org; Tue, 11 Oct 2016 08:38:08 -0400 From: Eduardo Habkost Date: Tue, 11 Oct 2016 09:37:46 -0300 Message-Id: <1476189467-11804-2-git-send-email-ehabkost@redhat.com> In-Reply-To: <1476189467-11804-1-git-send-email-ehabkost@redhat.com> References: <1476189467-11804-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] tests: check-qom-proplist: Remove "bv" class property from class 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" The object_property_add_bool() call in dummy_init() was always failing because there was a "bv" class property already. Remove the class property so both object properties and class properties are covered by the test code. Signed-off-by: Eduardo Habkost --- 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