ci/test-issue-56.pl
raw| 1 | #!/usr/bin/perl -w |
| 2 | |
| 3 | # regression testing for github issue #56 |
| 4 | # |
| 5 | use Test::Command; |
| 6 | use Test::More; |
| 7 | |
| 8 | if( $^O eq 'darwin' ) { |
| 9 | plan skip_all => 'Test disabled on MacOS'; |
| 10 | exit 0; |
| 11 | } |
| 12 | |
| 13 | plan tests => 3; |
| 14 | |
| 15 | my $cmd1 = Test::Command->new(cmd => "fping -t100 -p100 -C3 255.255.255.255"); |
| 16 | $cmd1->exit_is_num(1); |
| 17 | $cmd1->stdout_is_eq(""); |
| 18 | $cmd1->stderr_is_eq("\n255.255.255.255 : - - -\n"); |