@@ -182,7 +182,7 @@ tests/test-cutils$(EXESUF): tests/test-cutils.o util/cutils.o
tests/test-int128$(EXESUF): tests/test-int128.o
tests/test-qdev-global-props$(EXESUF): tests/test-qdev-global-props.o \
hw/core/qdev.o hw/core/qdev-properties.o hw/core/hotplug.o\
- hw/core/irq.o \
+ hw/core/irq.o hw/core/machine.o hw/core/null-machine.o \
$(qom-core-obj) \
$(test-qapi-obj-y) \
libqemuutil.a libqemustub.a
@@ -170,6 +170,9 @@ int main(int argc, char **argv)
type_register_static(&static_prop_type);
type_register_static(&dynamic_prop_type);
+ object_property_add_child(object_get_root(), "machine",
+ object_new("none-machine"), &error_abort);
+
g_test_add_func("/qdev/properties/static/default", test_static_prop);
g_test_add_func("/qdev/properties/static/global", test_static_globalprop);
g_test_add_func("/qdev/properties/dynamic/global", test_dynamic_globalprop);
The machine is no longer a container. Add null-machine to the QOM tree. Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com> --- tests/Makefile | 2 +- tests/test-qdev-global-props.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)