summaryrefslogtreecommitdiff
path: root/cpp/src/tests/test_env
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/tests/test_env')
-rwxr-xr-xcpp/src/tests/test_env2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/test_env b/cpp/src/tests/test_env
index fdfc5f0369..c73cac43ea 100755
--- a/cpp/src/tests/test_env
+++ b/cpp/src/tests/test_env
@@ -6,7 +6,7 @@
# Use VALGRIND if set, else look on path.
test -z "$VALGRIND" && VALGRIND=`which valgrind 2>/dev/null`
# No valgrind, just run the command
-test -z "$VALGRIND" && exec libtool --mode=execute "$@"
+test -z "$VALGRIND" && { exec libtool --mode=execute "$@"; exit $?; }
test "$VERBOSE" = yes && set -x
test -z "$vg_log" && vg_log=valgrind.out