Debian Codegraph @

ci/test-13-unknown-host.pl

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