diff options
author | Bin Meng | 2022-08-24 11:40:13 +0200 |
---|---|---|
committer | Thomas Huth | 2022-08-29 15:28:51 +0200 |
commit | fbde3ae8e7b73f4d5c46206ae3d22bcc470c55e1 (patch) | |
tree | 13629fb7c905cb7f60f68b48598d0385efa14372 /tests/qtest/device-plug-test.c | |
parent | tests/qtest: libqos: Rename malloc.h to libqos-malloc.h (diff) | |
download | qemu-fbde3ae8e7b73f4d5c46206ae3d22bcc470c55e1.tar.gz qemu-fbde3ae8e7b73f4d5c46206ae3d22bcc470c55e1.tar.xz qemu-fbde3ae8e7b73f4d5c46206ae3d22bcc470c55e1.zip |
tests/qtest: device-plug-test: Reverse the usage of double/single quotes
The usage of double/single quotes in test_pci_unplug_json_request()
should be reversed to work on both win32 and non-win32 platforms:
- The value of -device parameter needs to be surrounded by "" as
Windows does not drop '' when passing it to QEMU which causes
QEMU command line option parser failure.
- The JSON key/value pairs need to be surrounded by '' to make the
JSON parser happy on Windows.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220824094029.1634519-36-bmeng.cn@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/device-plug-test.c')
-rw-r--r-- | tests/qtest/device-plug-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/device-plug-test.c b/tests/qtest/device-plug-test.c index 2e3137843e..a1fb99c8ff 100644 --- a/tests/qtest/device-plug-test.c +++ b/tests/qtest/device-plug-test.c @@ -95,7 +95,7 @@ static void test_pci_unplug_json_request(void) } QTestState *qtest = qtest_initf( - "%s -device '{\"driver\": \"virtio-mouse-pci\", \"id\": \"dev0\"}'", + "%s -device \"{'driver': 'virtio-mouse-pci', 'id': 'dev0'}\"", machine_addition); /* |