more tests

pull/67/head
David Schweikert 11 years ago
parent c9f276b3cd
commit 3aa530c2ff

@ -13,7 +13,7 @@ system("cp $fping6_bin /tmp/fping6.copy; chmod +x /tmp/fping6.copy");
my $cmd = Test::Command->new(cmd => "/tmp/fping.copy 127.0.0.1"); my $cmd = Test::Command->new(cmd => "/tmp/fping.copy 127.0.0.1");
$cmd->exit_is_num(4); $cmd->exit_is_num(4);
$cmd->stdout_is_eq(""); $cmd->stdout_is_eq("");
$cmd->stderr_is_eq("(null): can't create socket (must run as root?) : Permission denied\n"); $cmd->stderr_like(qr{\(null\): can't create socket \(must run as root\?\) : .*\n});
} }
# fping6 # fping6
@ -21,5 +21,5 @@ $cmd->stderr_is_eq("(null): can't create socket (must run as root?) : Permission
my $cmd = Test::Command->new(cmd => "/tmp/fping6.copy ::1"); my $cmd = Test::Command->new(cmd => "/tmp/fping6.copy ::1");
$cmd->exit_is_num(4); $cmd->exit_is_num(4);
$cmd->stdout_is_eq(""); $cmd->stdout_is_eq("");
$cmd->stderr_is_eq("(null): can't create raw socket (must run as root?) : Protocol not supported\n"); $cmd->stderr_like(qr{\(null\): can't create raw socket \(must run as root\?\) : .*\n});
} }

Loading…
Cancel
Save