fix -m test

version3
David Schweikert 8 years ago
parent cc8043b7a6
commit 4db7212323

@ -53,10 +53,13 @@ SKIP: {
} }
# fping -m # fping -m
{ SKIP: {
my $cmd = Test::Command->new(cmd => "fping -m google-public-dns-a.google.com"); if(system("/sbin/ifconfig | grep inet6.*Scope:Global") != 0) {
skip 'No IPv6 on this host', 3;
}
my $cmd = Test::Command->new(cmd => "fping -A -m google-public-dns-a.google.com");
$cmd->exit_is_num(0); $cmd->exit_is_num(0);
$cmd->stdout_is_eq("google-public-dns-a.google.com is alive\n"); $cmd->stdout_is_eq("2001:4860:4860::8888 is alive\n8.8.8.8 is alive\n");
$cmd->stderr_is_eq(""); $cmd->stderr_is_eq("");
} }

Loading…
Cancel
Save