test_qapi_type() checks that if @qapi-type is present, it resolves in
output of query-qmp-schema. Absent @qapi-type is reported with
g_test_message except for child and link properties.
The exception became useless when we implemented @qapi-type for child
and link properties. Drop it.
Fixes: 6955264d5821 ("qom: Convert child and link properties to QAPI-aware
registration")
Signed-off-by: Markus Armbruster <[email protected]>
---
tests/qtest/qmp-cmd-test.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/qtest/qmp-cmd-test.c b/tests/qtest/qmp-cmd-test.c
index acb7b0dd6a9..5138582bb3f 100644
--- a/tests/qtest/qmp-cmd-test.c
+++ b/tests/qtest/qmp-cmd-test.c
@@ -384,8 +384,7 @@ static void test_qapi_type(void)
if (qapi_type) {
g_assert_nonnull(qmp_schema_lookup(&schema, qapi_type));
- } else if (!g_str_has_prefix(ty, "child<") &&
- !g_str_has_prefix(ty, "link<")) {
+ } else {
g_test_message("%s.%s %s has no associated qapi-type",
name, propname, ty);
}
--
2.55.0