]> Git Repo - qemu.git/commitdiff
tests/qom-proplist: check duplicate "bv" property registration failed
authorMarc-André Lureau <[email protected]>
Thu, 6 Sep 2018 14:12:12 +0000 (18:12 +0400)
committerMarc-André Lureau <[email protected]>
Fri, 5 Oct 2018 12:14:22 +0000 (16:14 +0400)
"bv" is already a class property.

Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
tests/check-qom-proplist.c

index 92898e15205179d2eb41a84fe29b42e361250d50..0f6d9c1ce393bcf4aba13b0caff4f4ec6dc14a5c 100644 (file)
@@ -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);
 }
 
 
This page took 0.026484 seconds and 4 git commands to generate.