diff --git a/wscript b/wscript index 883f540b3..0f58a7e2f 100644 --- a/wscript +++ b/wscript @@ -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: