|
|
|
@ -5,7 +5,7 @@ use Test::Command tests => 6;
|
|
|
|
|
# fping
|
|
|
|
|
{
|
|
|
|
|
my $cmd = Test::Command->new(cmd => "fping nosuchname.example.com");
|
|
|
|
|
$cmd->exit_is_num(1);
|
|
|
|
|
$cmd->exit_is_num(2);
|
|
|
|
|
$cmd->stdout_is_eq("");
|
|
|
|
|
$cmd->stderr_like(qr{^nosuchname\.example\.com: .*not (known|found)});
|
|
|
|
|
}
|
|
|
|
@ -13,7 +13,7 @@ $cmd->stderr_like(qr{^nosuchname\.example\.com: .*not (known|found)});
|
|
|
|
|
# fping6
|
|
|
|
|
{
|
|
|
|
|
my $cmd = Test::Command->new(cmd => "fping6 nosuchname.example.com");
|
|
|
|
|
$cmd->exit_is_num(1);
|
|
|
|
|
$cmd->exit_is_num(2);
|
|
|
|
|
$cmd->stdout_is_eq("");
|
|
|
|
|
$cmd->stderr_like(qr{^nosuchname\.example\.com: .*not (known|found)});
|
|
|
|
|
}
|
|
|
|
|