tests/qom-proplist: check duplicate "bv" property registration failed
"bv" is already a class property. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
7439a036d5
commit
9633017998
@ -125,10 +125,13 @@ static char *dummy_get_sv(Object *obj,
|
|||||||
|
|
||||||
static void dummy_init(Object *obj)
|
static void dummy_init(Object *obj)
|
||||||
{
|
{
|
||||||
|
Error *err = NULL;
|
||||||
|
|
||||||
object_property_add_bool(obj, "bv",
|
object_property_add_bool(obj, "bv",
|
||||||
dummy_get_bv,
|
dummy_get_bv,
|
||||||
dummy_set_bv,
|
dummy_set_bv,
|
||||||
NULL);
|
&err);
|
||||||
|
error_free_or_abort(&err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user