]> xenbits.xensource.com Git - libvirt.git/commit
qemumonitorjsontest: Work around deprecation of 'vcpu' argument of 'trace-event-get...
authorPeter Krempa <pkrempa@redhat.com>
Tue, 6 Jun 2023 09:03:39 +0000 (11:03 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 6 Jun 2023 12:23:23 +0000 (14:23 +0200)
commit8b114892840717a9b1c2491b2519934349b4d1d2
tree4a903174ba1db85035e627aed4a4ef5fbc4e8d61
parentdebe7f54065dd55640cf2ce600223dff53745ad4
qemumonitorjsontest: Work around deprecation of 'vcpu' argument of 'trace-event-get-state'

'trace-event-get-state' was used for testing schema validation as it had
simple arguments. Now 'vcpu' is optional and deprecated. Fix the test so
that it won't break with upcoming qemu-8.1.

Drop the 'all-attrs' case, as it's not not really testing anything
special and for the 'missing mandatory attr' case use an empty object.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemumonitorjsontest.c