aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-10-19 23:30:43 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-10-19 23:30:43 +0000
commite40a0d2113bfeb5018409ed25e9711e6da7d994b (patch)
tree49719c577bd5d3ba4da545a4a184a6a5326eee8d /malloc
parent728e272aec1b217bce32f1d75ecefb888e67b678 (diff)
downloadglibc-e40a0d2113bfeb5018409ed25e9711e6da7d994b.tar
glibc-e40a0d2113bfeb5018409ed25e9711e6da7d994b.tar.gz
glibc-e40a0d2113bfeb5018409ed25e9711e6da7d994b.tar.bz2
glibc-e40a0d2113bfeb5018409ed25e9711e6da7d994b.zip
Use $(run-program-prefix) in more shell script tests.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/Makefile2
-rwxr-xr-xmalloc/tst-mtrace.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/malloc/Makefile b/malloc/Makefile
index eb909fd64c..9dd0336d9e 100644
--- a/malloc/Makefile
+++ b/malloc/Makefile
@@ -109,7 +109,7 @@ ifeq (yes,$(build-shared))
ifneq ($(PERL),no)
tests: $(objpfx)tst-mtrace.out
$(objpfx)tst-mtrace.out: tst-mtrace.sh $(objpfx)tst-mtrace
- $(SHELL) $< $(common-objpfx)
+ $(SHELL) $< $(common-objpfx) '$(run-program-prefix)'
endif
endif
endif
diff --git a/malloc/tst-mtrace.sh b/malloc/tst-mtrace.sh
index 14b0ad480f..d81e550a27 100755
--- a/malloc/tst-mtrace.sh
+++ b/malloc/tst-mtrace.sh
@@ -20,13 +20,14 @@
set -e
common_objpfx=$1; shift
+run_program_prefix=$1; shift
status=0
trap "rm -f ${common_objpfx}malloc/tst-mtrace.leak; exit 1" 1 2 15
MALLOC_TRACE=${common_objpfx}malloc/tst-mtrace.leak \
LOCPATH=${common_objpfx}localedata GCONV_PATH=${common_objpfx}iconvdata \
-${common_objpfx}elf/ld.so --library-path $common_objpfx \
+${run_program_prefix} \
${common_objpfx}malloc/tst-mtrace || status=1
if test $status -eq 0 && test -f ${common_objpfx}malloc/mtrace; then