summaryrefslogtreecommitdiff
path: root/runtests.SH
diff options
context:
space:
mode:
authorMike Fulton <mikefultonpersonal@gmail.com>2021-12-31 14:08:31 -0800
committerKarl Williamson <khw@cpan.org>2022-01-01 18:11:47 -0700
commit53de846c3ad88dee846624ea33034c45122882a1 (patch)
tree44374ea976141a084083d39be218cc3bef6ab6bd /runtests.SH
parent1c267c880abb4d52f0dc23c70636b5f2e80253be (diff)
downloadperl-53de846c3ad88dee846624ea33034c45122882a1.tar.gz
Enable z/OS to run with '-e' option for runtests
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.
Diffstat (limited to 'runtests.SH')
-rwxr-xr-xruntests.SH5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtests.SH b/runtests.SH
index 71f41d1d42..245440bd06 100755
--- a/runtests.SH
+++ b/runtests.SH
@@ -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)