40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
|
|
From 62e1305aa46d91915aa987aca125db7f32845cd9 Mon Sep 17 00:00:00 2001
|
||
|
|
From: tangbinzy <tangbin_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Mon, 9 Sep 2024 07:57:18 +0000
|
||
|
|
Subject: [PATCH] tests: mark io-command test as skipped if socat is missing
|
||
|
|
mainline inclusion commit 525207cd77adb181b4ef61d0b7669f52f737e9d0 category:
|
||
|
|
bugfix
|
||
|
|
MIME-Version: 1.0
|
||
|
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
---------------------------------------------------------------
|
||
|
|
|
||
|
|
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
||
|
|
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
||
|
|
Message-Id: <20220901110414.2892954-1-marcandre.lureau@redhat.com>
|
||
|
|
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
||
|
|
|
||
|
|
Signed-off-by: tangbinzy <tangbin_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
tests/unit/test-io-channel-command.c | 3 ++-
|
||
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/tests/unit/test-io-channel-command.c b/tests/unit/test-io-channel-command.c
|
||
|
|
index 99056e07c0..aa09c559cd 100644
|
||
|
|
--- a/tests/unit/test-io-channel-command.c
|
||
|
|
+++ b/tests/unit/test-io-channel-command.c
|
||
|
|
@@ -41,7 +41,8 @@ static void test_io_channel_command_fifo(bool async)
|
||
|
|
|
||
|
|
unlink(TEST_FIFO);
|
||
|
|
if (access("/bin/socat", X_OK) < 0) {
|
||
|
|
- return; /* Pretend success if socat is not present */
|
||
|
|
+ g_test_skip("socat is missing");
|
||
|
|
+ return;
|
||
|
|
}
|
||
|
|
if (mkfifo(TEST_FIFO, 0600) < 0) {
|
||
|
|
abort();
|
||
|
|
--
|
||
|
|
2.41.0.windows.1
|
||
|
|
|