diff options
author | anton <anton@cvs.openbsd.org> | 2017-10-23 17:11:08 +0000 |
---|---|---|
committer | anton <anton@cvs.openbsd.org> | 2017-10-23 17:11:08 +0000 |
commit | 6781a91f98a50ef6091d8b66d9e898c316dc46bc (patch) | |
tree | 6f4e31a1b68c02e9bd4dc8758e51433d1d1379b7 | |
parent | 147074222380b8bdc0383f3c116913e0f2001b9c (diff) |
Run all ksh tests with MALLOC_OPTIONS=S
-rw-r--r-- | regress/bin/ksh/th | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/regress/bin/ksh/th b/regress/bin/ksh/th index b1055f06df9..4a35e2664db 100644 --- a/regress/bin/ksh/th +++ b/regress/bin/ksh/th @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $OpenBSD: th,v 1.1 2013/12/02 20:39:44 millert Exp $ +# $OpenBSD: th,v 1.2 2017/10/23 17:11:07 anton Exp $ # @@ -56,9 +56,10 @@ # missing, NAME is removed from the # environment. Programs are run with # the following minimal environment: -# USER, LOGNAME, HOME, PATH, SHELL -# (values taken from the environment of -# the test harness). +# USER, LOGNAME, HOME, PATH, SHELL, +# MALLOC_OPTIONS=S +# (values from the current environment +# takes higher precedence). # file-setup mps Used to create files, directories # and symlinks. First word is either # file, dir or symlink; second word is @@ -232,8 +233,10 @@ grep($do_test{$_} = 1, @ARGV); $all_tests = @ARGV == 0; # Set up a very minimal environment -%new_env = (); -foreach $env (('USER', 'LOGNAME', 'HOME', 'PATH', 'SHELL')) { +%new_env = ( + MALLOC_OPTIONS => 'S', +); +foreach $env (('USER', 'LOGNAME', 'HOME', 'PATH', 'SHELL', 'MALLOC_OPTIONS')) { $new_env{$env} = $ENV{$env} if defined $ENV{$env}; } if (defined $opt_e) { |