[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 04/13] tests: Explicitly create containers in test_qom_partial
From: |
Peter Xu |
Subject: |
[PATCH v2 04/13] tests: Explicitly create containers in test_qom_partial_path() |
Date: |
Thu, 21 Nov 2024 14:21:53 -0500 |
Drop one use of container_get(), instead switch to the explicit function to
create a container.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
---
tests/unit/check-qom-proplist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/unit/check-qom-proplist.c b/tests/unit/check-qom-proplist.c
index 79d4a8b89d..b48e890577 100644
--- a/tests/unit/check-qom-proplist.c
+++ b/tests/unit/check-qom-proplist.c
@@ -610,7 +610,7 @@ static void test_dummy_delchild(void)
static void test_qom_partial_path(void)
{
Object *root = object_get_objects_root();
- Object *cont1 = container_get(root, "/cont1");
+ Object *cont1 = object_property_add_new_container(root, "cont1");
Object *obj1 = object_new(TYPE_DUMMY);
Object *obj2a = object_new(TYPE_DUMMY);
Object *obj2b = object_new(TYPE_DUMMY);
--
2.45.0
- [PATCH v2 00/13] QOM: container_get() removal, Peter Xu, 2024/11/21
- [PATCH v2 01/13] qom: Add TYPE_CONTAINER macro, Peter Xu, 2024/11/21
- [PATCH v2 03/13] tests: Fix test-qdev-global-props on anonymous qdev realize(), Peter Xu, 2024/11/21
- [PATCH v2 02/13] qom: New object_property_add_new_container(), Peter Xu, 2024/11/21
- [PATCH v2 04/13] tests: Explicitly create containers in test_qom_partial_path(),
Peter Xu <=
- [PATCH v2 07/13] qom: Create system containers explicitly, Peter Xu, 2024/11/21
- [PATCH v2 08/13] qdev: Make qdev_get_machine() not use container_get(), Peter Xu, 2024/11/21
- [PATCH v2 05/13] ppc/e500: Avoid abuse of container_get(), Peter Xu, 2024/11/21
- [PATCH v2 06/13] hw/ppc: Explicitly create the drc container, Peter Xu, 2024/11/21
- [PATCH v2 10/13] qom: Use machine_get_container(), Peter Xu, 2024/11/21
- [PATCH v2 09/13] qdev: Add machine_get_container(), Peter Xu, 2024/11/21