Skip to content

Commit

Permalink
Enable z/OS to run with '-e' option for runtests
Browse files Browse the repository at this point in the history
 Change this code so that the unset of MAKEFLAGS is protected because,
 on z/OS, unset will return non-zero if the variable is not set and this
 then causes the shell to fail because it is being run with _-e_. This
 change is only required for z/OS but is harmless to have on all
 platforms.
  • Loading branch information
Mike Fulton authored and khwilliamson committed Jan 2, 2022
1 parent 1c267c8 commit 53de846
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runtests.SH
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed mysel
# descendents of this script run cpan/ExtUtils-Constant/t/Constant.t
# which itelf invokes make, the warnings ensue.
unset MAKEFLAGS
if [ "x$MAKEFLAGS" != "x" ]; then
unset MAKEFLAGS
fi
case $# in
0)
Expand Down

0 comments on commit 53de846

Please sign in to comment.