]> git.gsnw.org Git - fping.git/commitdiff
ci: skip an unreliable test on macOS
authorErik Auerswald <auerswal@unix-ag.uni-kl.de>
Sun, 23 Jun 2024 16:57:18 +0000 (18:57 +0200)
committerGerman-Service-Network <30377384+gsnw@users.noreply.github.com>
Fri, 28 Jun 2024 19:13:58 +0000 (21:13 +0200)
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

index da442a254d55d8d7f171ba08ea9acdedf5f4b17c..4a29970d35000cd9012efbdc9b8809bae0f2af60 100755 (executable)
@@ -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\]