tests/unit/test-smp-parse: Use default parameters=0 when not set in -smp
authorZhao Liu <zhao1.liu@intel.com>
Wed, 29 May 2024 06:19:21 +0000 (14:19 +0800)
committerThomas Huth <thuth@redhat.com>
Wed, 12 Jun 2024 10:10:57 +0000 (12:10 +0200)
commitaedfeffe19e65a657a4d989593fcf233809127d8
treeece53b654deb025b544b33730d9c1a7d624d22f0
parent74c3d84d48084be058e5a9f9aa21f9edf174540e
tests/unit/test-smp-parse: Use default parameters=0 when not set in -smp

Since -smp allows parameters=1 whether the level is supported by
machine, to avoid the test scenarios where the parameter defaults to 1
cause some errors to be masked, explicitly set undesired parameters to
0.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Message-ID: <20240529061925.350323-5-zhao1.liu@intel.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/unit/test-smp-parse.c