From: David Schweikert Date: Fri, 2 Oct 2015 18:20:19 +0000 (+0200) Subject: minor fix for tests X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0499ff1ae4dbd8309de9ae0b957c4889da855be9;p=fping.git minor fix for tests --- diff --git a/ci/prepare-macos.sh b/ci/prepare-macos.sh index 09125eb..75ff33b 100755 --- a/ci/prepare-macos.sh +++ b/ci/prepare-macos.sh @@ -11,3 +11,8 @@ if [[ ! `ifconfig lo0` =~ 127\.0\.0\.2 ]]; then sudo ifconfig lo0 127.0.0.4/8 alias sudo ifconfig lo0 127.0.0.5/8 alias fi + +if [[ ! $PATH =~ /Users/dws/checkouts/fping/src ]]; then + echo "# WARNING: must set PATH:" + echo PATH=/Users/dws/checkouts/fping/src:\$PATH +fi diff --git a/ci/test-13-unknown-host.pl b/ci/test-13-unknown-host.pl index ee0c850..9ee5021 100755 --- a/ci/test-13-unknown-host.pl +++ b/ci/test-13-unknown-host.pl @@ -7,7 +7,7 @@ use Test::Command tests => 6; my $cmd = Test::Command->new(cmd => "fping nosuchname.example.com"); $cmd->exit_is_num(1); $cmd->stdout_is_eq(""); -$cmd->stderr_like(qr{^nosuchname\.example\.com: (Name or service not known|nodename nor servname provided, or not known)\n}); +$cmd->stderr_like(qr{^nosuchname\.example\.com: .*not (known|found)}); } # fping6 @@ -15,5 +15,5 @@ $cmd->stderr_like(qr{^nosuchname\.example\.com: (Name or service not known|noden my $cmd = Test::Command->new(cmd => "fping6 nosuchname.example.com"); $cmd->exit_is_num(1); $cmd->stdout_is_eq(""); -$cmd->stderr_like(qr{^nosuchname\.example\.com: (Name or service not known|nodename nor servname provided, or not known)\n}); +$cmd->stderr_like(qr{^nosuchname\.example\.com: .*not (known|found)}); }