From: David Schweikert Date: Mon, 13 Feb 2017 20:49:48 +0000 (+0100) Subject: improve test coverage X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e0b2277a34e8e30575f8081409957f1d2d55e0b;p=fping.git improve test coverage --- diff --git a/ci/test-14-ping-internet-hosts.pl b/ci/test-14-ping-internet-hosts.pl index 53c2e11..5f4f842 100755 --- a/ci/test-14-ping-internet-hosts.pl +++ b/ci/test-14-ping-internet-hosts.pl @@ -9,7 +9,7 @@ if(!gethostbyname("www.google.com")) { exit 0; } -plan tests => 27; +plan tests => 30; my $re_num = qr{\d+(?:\.\d+)?}; @@ -83,7 +83,7 @@ SKIP: { { my $cmd = Test::Command->new(cmd => "fping -4 -A -m www.github.com"); $cmd->exit_is_num(0); -$cmd->stdout_like(qr{\d+\.\d+\.\d+\.\d+\n is alive\n\d+\.\d+\.\d+\.\d+ is alive\n}); +$cmd->stdout_like(qr{\d+\.\d+\.\d+\.\d+ is alive\n\d+\.\d+\.\d+\.\d+ is alive\n}); $cmd->stderr_is_eq(""); }