]> git.gsnw.org Git - fping.git/commitdiff
Remove macos-specific test to verify that -I is not supported, since that seems to...
authorDavid Schweikert <david@schweikert.ch>
Tue, 19 Aug 2025 07:11:01 +0000 (09:11 +0200)
committerDavid Schweikert <david@schweikert.ch>
Tue, 19 Aug 2025 07:26:00 +0000 (09:26 +0200)
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

index 0c0465f3e8edea9a9de5bc21cdaf27d7c867a0d0..d69e04da4b73bd0ca589307aada87dc7598e2ece 100755 (executable)
@@ -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');