From a0086b489490fec904dafc804df9fbc4b476231a Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Tue, 19 Aug 2025 09:11:01 +0200 Subject: [PATCH] Remove macos-specific test to verify that -I is not supported, since that seems to work now. Failed test: ``` # Failed test 'exit_is_num: fping -I lo0 127.0.0.1, 3' # at ci/test-07-options-i-m.pl line 63. # got: 0 # expected: 3 # Failed test 'stdout_is_eq: fping -I lo0 127.0.0.1, fping: cant bind to a particular net interface since SO_BINDTODEVICE is not supported on your os. # ' # at ci/test-07-options-i-m.pl line 64. # got: '127.0.0.1 is alive # ' # expected: 'fping: cant bind to a particular net interface since SO_BINDTODEVICE is not supported on your os. # ' # Looks like you failed 2 tests of 28. ``` --- ci/test-07-options-i-m.pl | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/ci/test-07-options-i-m.pl b/ci/test-07-options-i-m.pl index 0c0465f..d69e04d 100755 --- a/ci/test-07-options-i-m.pl +++ b/ci/test-07-options-i-m.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -use Test::Command tests => 28; +use Test::Command tests => 25; use Test::More; # -i n interval between sending ping packets (in millisec) (default 25) @@ -54,17 +54,6 @@ $cmd->stdout_is_eq(""); $cmd->stderr_like(qr{binding to specific interface \(SO_BINDTODEVICE\):.*\n}); } -# fping -I IFACE -SKIP: { -if($^O ne 'darwin') { - skip 'test for unsupported -I on macOS', 3; -} -my $cmd = Test::Command->new(cmd => 'fping -I lo0 127.0.0.1'); -$cmd->exit_is_num(3); -$cmd->stdout_is_eq("fping: cant bind to a particular net interface since SO_BINDTODEVICE is not supported on your os.\n"); -$cmd->stderr_is_eq(""); -} - # fping -l { my $cmd = Test::Command->new(cmd => '(sleep 2; pkill fping)& fping -p 900 -l 127.0.0.1'); -- 2.43.0