diff options
| author | Marc-André Lureau | 2018-09-06 16:12:12 +0200 |
|---|---|---|
| committer | Marc-André Lureau | 2018-10-05 14:14:22 +0200 |
| commit | 9633017998c965e106f9ff4585ec09294c924c8e (patch) | |
| tree | c2a91f8447a8ea8aa485c110024af2487658fab2 /tests | |
| parent | qom/object: register 'type' property as class property (diff) | |
| download | qemu-9633017998c965e106f9ff4585ec09294c924c8e.tar.gz qemu-9633017998c965e106f9ff4585ec09294c924c8e.tar.xz qemu-9633017998c965e106f9ff4585ec09294c924c8e.zip | |
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); } |
