add test for fping6 -R issue (#84)

pull/86/head
David Schweikert 9 years ago
parent f88053a431
commit db1cc07877

@ -10,10 +10,20 @@ use Test::Command tests => 15;
# -T n ignored (for compatibility with fping 2.4)
# fping -R
my $cmd1 = Test::Command->new(cmd => "fping -q -R -c3 -p100 127.0.0.1");
$cmd1->exit_is_num(0);
$cmd1->stdout_is_eq("");
$cmd1->stderr_like(qr{127\.0\.0\.1 : xmt/rcv/%loss = 3/3/0%.*});
{
my $cmd = Test::Command->new(cmd => "fping -q -R -c3 -p100 127.0.0.1");
$cmd->exit_is_num(0);
$cmd->stdout_is_eq("");
$cmd->stderr_like(qr{127\.0\.0\.1 : xmt/rcv/%loss = 3/3/0%.*});
}
# fping6 -R
{
my $cmd = Test::Command->new(cmd => "fping6 -q -R -c3 -p100 ::1");
$cmd->exit_is_num(0);
$cmd->stdout_is_eq("");
$cmd->stderr_like(qr{::1 : xmt/rcv/%loss = 3/3/0%.*});
}
# fping -r tested in test-4-options-a-b.pl

Loading…
Cancel
Save