]> git.proxmox.com Git - mirror_qemu.git/commit - tests/qtest/libqtest.c
tests: add qmp_assert_error_class()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 30 Aug 2018 15:58:07 +0000 (17:58 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 31 Aug 2018 07:53:10 +0000 (09:53 +0200)
commitebb4d82d88810c31cb5eee408e1ac6d319f7f9bb
tree3c58c804ec1f08f2da77bd3cae154caeb894947a
parentb8e1f74b0a258db394a35272a44d14ec0b6e0be9
tests: add qmp_assert_error_class()

This helper will simplify a bunch of code checking for QMP errors and
can be shared by various tests.  Note that test-qga does check for
error description as well, so don't replace the code there for now.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/drive_del-test.c
tests/libqtest.c
tests/libqtest.h
tests/qmp-test.c
tests/test-qga.c