Skip to content

Commit

Permalink
tests: mark io-command test as skipped if socat is missing
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Daniel P. Berrangé <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
  • Loading branch information
elmarco authored and huth committed Sep 19, 2022
1 parent d29201f commit 525207c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test-io-channel-command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 525207c

Please sign in to comment.