qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 05/10] tests/qom-proplist: check duplicate "bv" prop


From: Marc-André Lureau
Subject: [Qemu-devel] [PATCH 05/10] tests/qom-proplist: check duplicate "bv" property registration failed
Date: Thu, 6 Sep 2018 19:12:22 +0400

"bv" is already a class property.

Signed-off-by: Marc-André Lureau <address@hidden>
---
 tests/check-qom-proplist.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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);
 }
 
 
-- 
2.19.0.rc1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]