about summary refs log tree commit diff
path: root/malloc/tst-mtrace.sh
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/tst-mtrace.sh')
-rwxr-xr-xmalloc/tst-mtrace.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/malloc/tst-mtrace.sh b/malloc/tst-mtrace.sh
index abd425ddf3..446ebec496 100755
--- a/malloc/tst-mtrace.sh
+++ b/malloc/tst-mtrace.sh
@@ -20,14 +20,17 @@
 set -e
 
 common_objpfx=$1; shift
-test_program_prefix=$1; shift
+test_program_prefix_before_env=$1; shift
+run_program_env=$1; shift
+test_program_prefix_after_env=$1; shift
 
 status=0
 trap "rm -f ${common_objpfx}malloc/tst-mtrace.leak; exit 1" 1 2 15
 
+${test_program_prefix_before_env} \
+${run_program_env} \
 MALLOC_TRACE=${common_objpfx}malloc/tst-mtrace.leak \
-LOCPATH=${common_objpfx}localedata GCONV_PATH=${common_objpfx}iconvdata \
-${test_program_prefix} \
+${test_program_prefix_after_env} \
   ${common_objpfx}malloc/tst-mtrace || status=1
 
 if test $status -eq 0 && test -f ${common_objpfx}malloc/mtrace; then