summaryrefslogtreecommitdiffstats
path: root/testrunner/run_command.py
diff options
context:
space:
mode:
authorniko <niko@google.com>2009-07-07 13:22:33 -0700
committerniko <niko@google.com>2009-07-07 13:22:33 -0700
commit2dafd06c188f86bbd5852e1199a26265278d1f00 (patch)
tree5c5bd30e40f78bab059ca4fae6acfe620f443985 /testrunner/run_command.py
parent81382964c8afd2d2c4197ac3f99d734a7c94c36a (diff)
downloadandroid_development-2dafd06c188f86bbd5852e1199a26265278d1f00.tar.gz
android_development-2dafd06c188f86bbd5852e1199a26265278d1f00.tar.bz2
android_development-2dafd06c188f86bbd5852e1199a26265278d1f00.zip
Fix bug to be able to run binaries under valgrind.
Diffstat (limited to 'testrunner/run_command.py')
-rwxr-xr-xtestrunner/run_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testrunner/run_command.py b/testrunner/run_command.py
index 7d1f547ea..79c7ea5cd 100755
--- a/testrunner/run_command.py
+++ b/testrunner/run_command.py
@@ -144,7 +144,7 @@ def RunHostCommand(binary, valgrind=False):
else:
# Need the full path to valgrind to avoid other versions on the system.
subproc = subprocess.Popen(["/usr/bin/valgrind", "--tool=memcheck",
- "--leak-check=yes", "-q", full_path],
+ "--leak-check=yes", "-q", binary],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
# Cannot rely on the retcode of valgrind. Instead look for an empty output.
valgrind_out = subproc.communicate()[0].strip()