diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-22 00:47:48 -0600 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-24 01:51:00 -0600 |
commit | af7e3dadf9b26cbd817ae5638d37796482694282 (patch) | |
tree | 53e6fbdff7f495c4ab3235c0c34bf21870e46ba7 /source4/script | |
parent | 6915cad1274a8495439b41d5046daeef24d2c36b (diff) | |
download | samba-af7e3dadf9b26cbd817ae5638d37796482694282.tar.gz |
r26561: Fix make gdbtest, valgrindtest and testenv for shared libs.
(This used to be commit d2b9055bc032506849827d6fab2d2b9d35d132e2)
Diffstat (limited to 'source4/script')
-rwxr-xr-x | source4/script/gdb_run | 6 | ||||
-rw-r--r-- | source4/script/valgrind_run | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/source4/script/gdb_run b/source4/script/gdb_run index 146259d7050..8ad101ed60a 100755 --- a/source4/script/gdb_run +++ b/source4/script/gdb_run @@ -1,5 +1,9 @@ #!/bin/sh +ENV="$1" + +shift 1 + if test -z "$TMPDIR"; then TMPDIR="/tmp" fi @@ -13,4 +17,4 @@ EOF trap "/bin/rm -f $TMPFILE" EXIT CMD="gdb -x $TMPFILE --args $@" echo $CMD -eval "$CMD" +eval $ENV "$CMD" diff --git a/source4/script/valgrind_run b/source4/script/valgrind_run index 6aa54c70f12..45361c22b10 100644 --- a/source4/script/valgrind_run +++ b/source4/script/valgrind_run @@ -1,2 +1,7 @@ #!/bin/sh -valgrind -q --db-attach=yes --num-callers=30 $@ + +ENV="$1" + +shift 1 + +$ENV valgrind -q --db-attach=yes --num-callers=30 $@ |