]> git.gsnw.org Git - fping.git/commitdiff
minor fix for tests
authorDavid Schweikert <dws@open.ch>
Fri, 2 Oct 2015 18:20:19 +0000 (20:20 +0200)
committerDavid Schweikert <dws@open.ch>
Fri, 2 Oct 2015 18:20:19 +0000 (20:20 +0200)
ci/prepare-macos.sh
ci/test-13-unknown-host.pl

index 09125eb3dab02f5a44a79c0baae0ae8888c0cd67..75ff33bd4d5e67efe8b22fea6f7bd5d0dbff5474 100755 (executable)
@@ -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
index ee0c850327f717e572bef17891bca68b51f38b2c..9ee50212767e989ffacda14632cbab91dfd1488d 100755 (executable)
@@ -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)});
 }