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
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
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)});
}