qemu-e2k/tests
Markus Armbruster ef6783d3f7 target: Simplify type checks for CpuModelInfo member @props
CpuModelInfo member @props is semantically a mapping from name to
value, and syntactically a JSON object on the wire.  This translates
to QDict in C.  Since the QAPI schema language lacks the means to
express 'object', we use 'any' instead.  This is QObject in C.
Commands taking a CpuModelInfo argument need to check the QObject is a
QDict.

For arm, riscv, and s390x, the code checks right before passing the
QObject to visit_start_struct().  visit_start_struct() then checks
again.

Delete the first check.

The error message for @props that are not an object changes slightly
to the the message we get for this kind of type error in other
contexts.  Minor improvement.

Additionally, error messages about members of @props now refer to
'props.prop-name' instead of just 'prop-name'.  Another minor
improvement.

Both changes are visible in tests/qtest/arm-cpu-features.c.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240305145919.2186971-2-armbru@redhat.com>
Acked-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
[Drop #include now superfluous]
2024-03-12 13:54:01 +01:00
..
avocado tests/avocado/boot_linux_console.py: Add Rpi4b boot tests 2024-02-27 13:01:43 +00:00
bench
data tests/qtest/bios-tables-tests: Update virt golden reference 2024-02-15 11:31:52 +00:00
decode
docker .gitlab-ci.d: Drop cross-win32-system job 2024-02-23 08:13:52 +01:00
fp tests/fp: Bump fp-test-mulAdd test timeout to 3 minutes 2024-01-12 13:23:48 +00:00
guest-debug tests/tcg: Factor out gdbstub test functions 2024-01-29 20:48:49 +10:00
image-fuzzer
include
keys
lcitool .gitlab-ci.d: Drop cross-win32-system job 2024-02-23 08:13:52 +01:00
migration
multiboot
perf/block/qcow2
plugin tests/plugin/bb: migrate to new per_vcpu API 2024-03-06 12:35:36 +00:00
qapi-schema qapi: Reject "Returns" section when command doesn't return anything 2024-03-04 07:12:40 +01:00
qemu-iotests iotests: Make 144 deterministic again 2024-02-15 16:40:06 +00:00
qtest target: Simplify type checks for CpuModelInfo member @props 2024-03-12 13:54:01 +01:00
rocker
tcg target-arm queue: 2024-03-08 18:19:09 +00:00
tsan
uefi-test-tools
unit tests/unit/test-smp-parse: Test "parameter=0" SMP configurations 2024-03-09 19:17:01 +01:00
vm tests/vm: update openbsd image to 7.4 2024-02-28 09:09:16 +00:00
vmstate-static-checker-data
dbus-vmstate-daemon.sh
Makefile.include
meson.build
test-qht-par.c
vhost-user-bridge.c