OSDN Git Service
(root)
/
android-x86
/
development.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8138296
)
Fix bug to be able to run binaries under valgrind.
author
niko
<niko@google.com>
Tue, 7 Jul 2009 20:22:33 +0000
(13:22 -0700)
committer
niko
<niko@google.com>
Tue, 7 Jul 2009 20:22:33 +0000
(13:22 -0700)
testrunner/run_command.py
patch
|
blob
|
history
diff --git
a/testrunner/run_command.py
b/testrunner/run_command.py
index
7d1f547
..
79c7ea5
100755
(executable)
--- 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()