diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-09-06 18:12:12 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-10-05 16:14:22 +0400 |
commit | 9633017998c965e106f9ff4585ec09294c924c8e (patch) | |
tree | c2a91f8447a8ea8aa485c110024af2487658fab2 /tests | |
parent | 7439a036d58f0def85751d6d4d3232461a35ebee (diff) |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check-qom-proplist.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |