]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemumonitorutils: Don't crash on wrong monitor command
authorPeter Krempa <pkrempa@redhat.com>
Thu, 12 Jul 2018 11:27:40 +0000 (13:27 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 13 Jul 2018 12:15:59 +0000 (14:15 +0200)
commit33470896e5708f0e2def0662ebfa649981aa8aec
treeee69703ab5805ede19217a0240bb84cc5b5b7df3
parente59dc14d1e1587f9c231c7f7928bd9efb92b6b5f
tests: qemumonitorutils: Don't crash on wrong monitor command

virQEMUQAPISchemaPathGet returns success when a given schema path was
not found but the returned object is set to NULL. This meant that we'd
call testQEMUSchemaValidate with the schemaroot being NULL which lead to
a crash if a mistyped monitor command was tested.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
tests/qemumonitortestutils.c