[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 22/39] tests/qtest: migration-test: Disable IO redirection for
From: |
Bin Meng |
Subject: |
[PATCH v2 22/39] tests/qtest: migration-test: Disable IO redirection for win32 |
Date: |
Tue, 20 Sep 2022 18:31:42 +0800 |
From: Bin Meng <bin.meng@windriver.com>
On Windows the QEMU executable is created via CreateProcess() and
IO redirection does not work, so don't bother adding IO redirection
to the command line.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
---
Changes in v2:
- Change the place that sets IO redirection in the command line
tests/qtest/migration-test.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index 9925691ead..c87afad9e8 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -648,7 +648,16 @@ static int test_migrate_start(QTestState **from,
QTestState **to,
}
if (!getenv("QTEST_LOG") && args->hide_stderr) {
+#ifndef _WIN32
ignore_stderr = "2>/dev/null";
+#else
+ /*
+ * On Windows the QEMU executable is created via CreateProcess() and
+ * IO redirection does not work, so don't bother adding IO redirection
+ * to the command line.
+ */
+ ignore_stderr = "";
+#endif
} else {
ignore_stderr = "";
}
--
2.34.1
- [PATCH v2 19/39] tests/qtest: Support libqtest to build and run on Windows, (continued)
- [PATCH v2 19/39] tests/qtest: Support libqtest to build and run on Windows, Bin Meng, 2022/09/20
- [PATCH v2 23/39] tests/qtest: ide-test: Open file in binary mode, Bin Meng, 2022/09/20
- [PATCH v2 27/39] hw/ppc: spapr: Use qemu_vfree() to free spapr->htab, Bin Meng, 2022/09/20
- [PATCH v2 26/39] tests/qtest: migration-test: Make sure QEMU process "to" exited after migration is canceled, Bin Meng, 2022/09/20
- [PATCH v2 21/39] tests/qtest: bios-tables-test: Adapt the case for win32, Bin Meng, 2022/09/20
- [PATCH v2 22/39] tests/qtest: migration-test: Disable IO redirection for win32,
Bin Meng <=
- [PATCH v2 29/39] tests/qtest: microbit-test: Fix socket access for win32, Bin Meng, 2022/09/20
- [PATCH v2 25/39] chardev/char-file: Add FILE_SHARE_WRITE when openning the file for win32, Bin Meng, 2022/09/20
- [PATCH v2 31/39] tests/qtest: libqtest: Correct the timeout unit of blocking receive calls for win32, Bin Meng, 2022/09/20
- [PATCH v2 33/39] io/channel-watch: Drop the unnecessary cast, Bin Meng, 2022/09/20
- [PATCH v2 36/39] .gitlab-ci.d/windows.yml: Increase the timeout to 90 minutes, Bin Meng, 2022/09/20