From: Peter Krempa Date: Wed, 29 Apr 2020 17:59:51 +0000 (+0200) Subject: qemumonitorjsontest: Allow use of deprecated 'cpu-add' and 'change' command X-Git-Tag: v6.4.0-rc1~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c93020fcb531b0498d9dff2580b7c90d1bbeaa4;p=thirdparty%2Flibvirt.git qemumonitorjsontest: Allow use of deprecated 'cpu-add' and 'change' command Modify the generated test cases for the 'cpu-add' and 'change' command which are deprecated by qemu. We now use device-add and blockdev-change-media instead so we are okay if they will be removed. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c index eaaabe9a47..82a8122f29 100644 --- a/tests/qemumonitorjsontest.c +++ b/tests/qemumonitorjsontest.c @@ -3214,9 +3214,9 @@ mymain(void) DO_TEST_GEN(qemuMonitorJSONSetPassword); DO_TEST_GEN(qemuMonitorJSONExpirePassword); DO_TEST_GEN(qemuMonitorJSONSetBalloon); - DO_TEST_GEN(qemuMonitorJSONSetCPU); + DO_TEST_GEN_DEPRECATED(qemuMonitorJSONSetCPU, true); DO_TEST_GEN(qemuMonitorJSONEjectMedia); - DO_TEST_GEN(qemuMonitorJSONChangeMedia); + DO_TEST_GEN_DEPRECATED(qemuMonitorJSONChangeMedia, true); DO_TEST_GEN(qemuMonitorJSONSaveVirtualMemory); DO_TEST_GEN(qemuMonitorJSONSavePhysicalMemory); DO_TEST_GEN(qemuMonitorJSONSetMigrationSpeed);