Merge mozilla-central to tracemonkey.
authorRobert Sayre <sayrer@gmail.com>
Mon, 28 Sep 2009 14:25:32 -0700
changeset 33548 b7ed28f9d92d30b31a0168ad23f625e38716d83c
parent 33547 87fcc6cb16af9bef51bdd1428e5a84a732cb1f7a
child 33549 ba1af94901c62642c3d61f66eb21b95b6fb9b951
child 33552 ec1343f5ed9d543b4532d5ea9811fa77eb4de362
push idunknown
push userunknown
push dateunknown
milestone1.9.3a1pre
Merge mozilla-central to tracemonkey.
testing/xpcshell/runxpcshelltests.py
--- a/testing/xpcshell/runxpcshelltests.py
+++ b/testing/xpcshell/runxpcshelltests.py
@@ -213,20 +213,21 @@ def runTests(xpcshell, xrePath=None, sym
       try:
         profileDir = mkdtemp()
         env["XPCSHELL_TEST_PROFILE_DIR"] = profileDir
 
         # Enable leaks (only) detection to its own log file.
         leakLogFile = os.path.join(profileDir, "runxpcshelltests_leaks.log")
         env["XPCOM_MEM_LEAK_LOG"] = leakLogFile
 
-        proc = Popen(cmdH + cmdT + xpcsRunArgs,
+        proc = Popen(['valgrind', '--leak-check=full', '--dsymutil=yes'] + cmdH + cmdT + xpcsRunArgs,
                      stdout=pStdout, stderr=pStderr, env=env, cwd=testdir)
         # |stderr == None| as |pStderr| was either |None| or redirected to |stdout|.
         stdout, stderr = proc.communicate()
+        print stdout
 
         if interactive:
           # Not sure what else to do here...
           return True
 
         if proc.returncode != 0 or (stdout and re.search("^TEST-UNEXPECTED-FAIL", stdout, re.MULTILINE)):
           print """TEST-UNEXPECTED-FAIL | %s | test failed (with xpcshell return code: %d), see following log:
   >>>>>>>