]> git.gsnw.org Git - fping.git/commitdiff
improve test coverage
authorDavid Schweikert <david@schweikert.ch>
Mon, 13 Feb 2017 20:49:48 +0000 (21:49 +0100)
committerDavid Schweikert <david@schweikert.ch>
Mon, 13 Feb 2017 20:49:48 +0000 (21:49 +0100)
ci/test-14-ping-internet-hosts.pl

index 53c2e11dfeaf9fa4da55ae8845ca697c890ee5b6..5f4f8427843c01dd9b6cd6dd8f5d6d76eef40022 100755 (executable)
@@ -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("");
 }