Commit 91e5a99b authored by Michał Kępień's avatar Michał Kępień
Browse files

Silence a Perl warning output by

On Unix systems, the CYGWIN environment variable is not set at all when
BIND system tests are run.  If a named instance crashes on shutdown or
otherwise fails to clean up its pidfile and the CYGWIN environment
variable is not set, will print an uninitialized value warning
on standard error.  Prevent this by using defined().
parent 985d9d9c
Pipeline #11755 passed with stages
in 19 minutes and 40 seconds
......@@ -240,7 +240,7 @@ sub clean_pid_file {
if (send_signal(0, $pid) == 0) {
# XXX: on windows this is likely to result in a
# false positive, so don't bother reporting the error.
if ($ENV{'CYGWIN'} eq "") {
if (!defined($ENV{'CYGWIN'})) {
print "I:$test:$server crashed on shutdown\n";
$errors = 1;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment