From ab20b150b83af45a0f70fff2b40355f5878fd0d9 Mon Sep 17 00:00:00 2001 From: Erik Auerswald Date: Sun, 23 Jun 2024 18:57:18 +0200 Subject: [PATCH] ci: skip an unreliable test on macOS Sometimes, this test fails on macOS, at least on the GitHub CI. It looks as if the fping process is killed before it produces the required output. This test works reliably on GNU/Linux, so keep it, but skip it when running on macOS. --- ci/test-07-options-i-m.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/test-07-options-i-m.pl b/ci/test-07-options-i-m.pl index da442a2..4a29970 100755 --- a/ci/test-07-options-i-m.pl +++ b/ci/test-07-options-i-m.pl @@ -51,7 +51,10 @@ $cmd->stderr_like(qr{\[\d+:\d+:\d+\] } # fping -l -Q -{ +SKIP: { +if($^O eq 'darwin') { + skip 'On macOS, this test is unreliable', 2; +} my $cmd = Test::Command->new(cmd => '(sleep 2; pkill fping)& fping -p 850 -l -Q 1 127.0.0.1'); $cmd->stdout_is_eq(""); $cmd->stderr_like(qr{\[\d\d:\d\d:\d\d\] -- 2.43.0