mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Validate watchdog action compatibility per-device
This makes it also work during attach. Also add a test for attaching a watchdog with incompatible action. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2187278 Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -908,6 +908,9 @@ mymain(void)
|
||||
DO_TEST_DETACH("x86_64", "base-live", "watchdog-user-alias-full", false, false,
|
||||
"device_del", QMP_DEVICE_DELETED("ua-UserWatchdog") QMP_OK);
|
||||
|
||||
/* attaching a watchdog with different action should fail */
|
||||
DO_TEST_ATTACH("x86_64", "base-live+watchdog", "watchdog-reset", true, false, NULL);
|
||||
|
||||
DO_TEST_ATTACH("x86_64", "base-live", "guestfwd", false, true,
|
||||
"getfd", QMP_OK,
|
||||
"chardev-add", QMP_OK,
|
||||
|
||||
Reference in New Issue
Block a user