Received: from eggs.gnu.org ([2001:4830:134:3::10]:60731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpP2U-0002nC-Nq for qemu-devel@nongnu.org; Wed, 28 Sep 2016 20:17:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpP2R-0003C8-C5 for qemu-devel@nongnu.org; Wed, 28 Sep 2016 20:17:26 -0400 Received: from ozlabs.org ([103.22.144.67]:60209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpP2R-0003Bl-1u for qemu-devel@nongnu.org; Wed, 28 Sep 2016 20:17:23 -0400 From: David Gibson Date: Thu, 29 Sep 2016 10:16:44 +1000 Message-Id: <1475108205-6043-4-git-send-email-david@gibson.dropbear.id.au> In-Reply-To: <1475108205-6043-1-git-send-email-david@gibson.dropbear.id.au> References: <1475108205-6043-1-git-send-email-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [RFC 3/4] tests: Remove tests for class properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: afaerber@suse.de, peter.maydell@linaro.org Cc: armbru@redhat.com, pbonzini@redhat.com, lcapitulino@redhat.com, qemu-devel@nongnu.org, David Gibson There are no-longer any users of QOM class properties (as opposed to instance properties). In anticipation of removing support for them, remove tests for them from the testsuite. Signed-off-by: David Gibson --- tests/check-qom-proplist.c | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/tests/check-qom-proplist.c b/tests/check-qom-proplist.c index a16cefc..e684949 100644 --- a/tests/check-qom-proplist.c +++ b/tests/check-qom-proplist.c @@ -124,25 +124,16 @@ static void dummy_init(Object *obj) dummy_get_bv, dummy_set_bv, NULL); -} - - -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, - NULL); - object_class_property_add_enum(cls, "av", - "DummyAnimal", - dummy_animal_map, - dummy_get_av, - dummy_set_av, - NULL); + object_property_add_str(obj, "sv", + dummy_get_sv, + dummy_set_sv, + NULL); + object_property_add_enum(obj, "av", + "DummyAnimal", + dummy_animal_map, + dummy_get_av, + dummy_set_av, + NULL); } @@ -161,7 +152,6 @@ static const TypeInfo dummy_info = { .instance_init = dummy_init, .instance_finalize = dummy_finalize, .class_size = sizeof(DummyObjectClass), - .class_init = dummy_class_init, }; -- 2.7.4