Skip to content

Commit

Permalink
tests/qom-proplist: check duplicate "bv" property registration failed
Browse files Browse the repository at this point in the history
"bv" is already a class property.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
elmarco committed Oct 5, 2018
1 parent 7439a03 commit 9633017
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/check-qom-proplist.c
Expand Up @@ -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);
}


Expand Down

0 comments on commit 9633017

Please sign in to comment.