From: Marc-André Lureau Date: Thu, 6 Sep 2018 14:12:12 +0000 (+0400) Subject: tests/qom-proplist: check duplicate "bv" property registration failed X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9633017998c965e106f9ff4585ec09294c924c8e;p=qemu.git tests/qom-proplist: check duplicate "bv" property registration failed "bv" is already a class property. Signed-off-by: Marc-André Lureau Reviewed-by: Paolo Bonzini --- 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, static void dummy_init(Object *obj) { + Error *err = NULL; + object_property_add_bool(obj, "bv", dummy_get_bv, dummy_set_bv, - NULL); + &err); + error_free_or_abort(&err); }