[Ns-bugs] [Bug 449] waf regression exit code is zero even if a test fails

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Thu Dec 18 06:00:13 PST 2008


http://www.nsnam.org/bugzilla/show_bug.cgi?id=449





--- Comment #2 from Tom Henderson <tomh at tomh.org>  2008-12-18 09:00:13 EDT ---
(In reply to comment #1)
> Created an attachment (id=338)
 --> (http://www.nsnam.org/bugzilla/attachment.cgi?id=338) [details]
> patch
> 
> Sorry about that.  I accidentally broke it recently when refactoring the
> regression stuff into a separate file (don't remember the bug number).  This
> patch fixes it.
> 

That fixed "./waf --regression" (patch was applied) but I still notice a
problem with "./waf --valgrind  --regression" which is due to valgrind not
reporting an error code.  The below option would fix it, I believe-- I suggest
to check it in after the release.

diff -r 2efae18e7379 wscript
--- a/wscript   Wed Dec 17 12:54:16 2008 -0800
+++ b/wscript   Thu Dec 18 05:50:18 2008 -0800
@@ -461,7 +461,7 @@ def get_command_template(*arguments):
     if Params.g_options.valgrind:
         if Params.g_options.command_template:
             Params.fatal("Options --command-template and --valgrind are
conflicting")
-        cmd = "valgrind --leak-check=full %s"
+        cmd = "valgrind --leak-check=full --error-exitcode=1 %s"
     else:
         cmd = Params.g_options.command_template or '%s'
     for arg in arguments:


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list