(from Tom Henderson) make valgrind return an error exit code when problems are detected. Closes #449.

This commit is contained in:
Gustavo J. A. M. Carneiro
2009-01-24 15:51:09 +00:00
parent 5e8275ba01
commit 3cc5929ab6

View File

@@ -449,7 +449,7 @@ def get_command_template(*arguments):
if Options.options.valgrind:
if Options.options.command_template:
raise Utils.WafError("Options --command-template and --valgrind are conflicting")
cmd = "valgrind --leak-check=full %s"
cmd = "valgrind --leak-check=full --error-exitcode=1 %s"
else:
cmd = Options.options.command_template or '%s'
for arg in arguments: