[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 05/11] tests/qtest/migration-test: Inverse #ifdef'ry ladders
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 05/11] tests/qtest/migration-test: Inverse #ifdef'ry ladders |
Date: |
Fri, 20 Jan 2023 09:23:35 +0100 |
This slighly simplify the logic, and eases the following conversion.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
tests/qtest/migration-test.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index 1dd32c9506..5271ddb868 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -647,15 +647,15 @@ static int test_migrate_start(QTestState **from,
QTestState **to,
}
if (!getenv("QTEST_LOG") && args->hide_stderr) {
-#ifndef _WIN32
- ignore_stderr = "2>/dev/null";
-#else
+#ifdef _WIN32
/*
* 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 = "";
+#else
+ ignore_stderr = "2>/dev/null";
#endif
} else {
ignore_stderr = "";
--
2.38.1
- [PATCH v3 00/11] tests/qtest: Allow running boot-serial / migration with TCG disabled, Philippe Mathieu-Daudé, 2023/01/20
- [PATCH v3 01/11] tests/qtest/boot-serial-test: Constify tests[] array, Philippe Mathieu-Daudé, 2023/01/20
- [PATCH v3 02/11] tests/qtest/boot-serial-test: Simplify test_machine() a bit, Philippe Mathieu-Daudé, 2023/01/20
- [PATCH v3 03/11] tests/qtest/boot-serial-test: Build command line using GString API, Philippe Mathieu-Daudé, 2023/01/20
- [PATCH v3 04/11] tests/qtest/boot-serial-test: Only use available accelerators, Philippe Mathieu-Daudé, 2023/01/20
- [PATCH v3 05/11] tests/qtest/migration-test: Inverse #ifdef'ry ladders,
Philippe Mathieu-Daudé <=
- [PATCH v3 06/11] tests/qtest/migration-test: Reduce 'cmd_source' string scope, Philippe Mathieu-Daudé, 2023/01/20
- [PATCH v3 07/11] tests/qtest/migration-test: Build command line using GString API (1/4), Philippe Mathieu-Daudé, 2023/01/20
- [PATCH v3 08/11] tests/qtest/migration-test: Build command line using GString API (2/4), Philippe Mathieu-Daudé, 2023/01/20
- [PATCH v3 09/11] tests/qtest/migration-test: Build command line using GString API (3/4), Philippe Mathieu-Daudé, 2023/01/20