aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/test-io-channel-command.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-09-01 15:04:14 +0400
committerThomas Huth <thuth@redhat.com>2022-09-19 15:12:28 +0200
commit525207cd77adb181b4ef61d0b7669f52f737e9d0 (patch)
tree437e6f9cd2b3d5b07721a0ea5a7f7ad3459a3558 /tests/unit/test-io-channel-command.c
parentd29201ff34a135cdfc197f4413c1c5047e4f58bb (diff)
tests: mark io-command test as skipped if socat is missing
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>
Diffstat (limited to 'tests/unit/test-io-channel-command.c')
-rw-r--r--tests/unit/test-io-channel-command.c3
1 files changed, 2 insertions, 1 deletions
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();