You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fping/ci/test-13-unknown-host.pl

12 lines
249 B
Perl

11 years ago
#!/usr/bin/perl -w
use Test::Command tests => 3;
11 years ago
# fping
{
my $cmd = Test::Command->new(cmd => "fping nosuchname.example.com");
$cmd->exit_is_num(2);
11 years ago
$cmd->stdout_is_eq("");
$cmd->stderr_like(qr{^nosuchname\.example\.com: .*not (known|found)});
11 years ago
}