Bug 810767 - Update Valgrind flags in jit_test.py, r=njn
authorGary Kwong <gary@rumblingedge.com>
Fri, 14 Dec 2012 22:09:58 -0800
changeset 125240 7d37287856bde0eadcfd02e35ddded78b94ab025
parent 125239 a6ba8f73225782bc6f362d4fdb17a6bb0c63cab4
child 125241 e8d9982c553d26a02a186d96a4d0e818cca39045
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs810767
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 810767 - Update Valgrind flags in jit_test.py, r=njn
js/src/jit-test/jit_test.py
--- a/js/src/jit-test/jit_test.py
+++ b/js/src/jit-test/jit_test.py
@@ -16,28 +16,16 @@ def add_libdir_to_path():
     js_src_dir = dirname(dirname(realpath(sys.argv[0])))
     assert exists(join(js_src_dir,'jsapi.h'))
     sys.path.append(join(js_src_dir, 'lib'))
     sys.path.append(join(js_src_dir, 'tests', 'lib'))
 
 add_libdir_to_path()
 from progressbar import ProgressBar, NullProgressBar
 
-DEBUGGER_INFO = {
-  "gdb": {
-    "interactive": True,
-    "args": "-q --args"
-  },
-
-  "valgrind": {
-    "interactive": False,
-    "args": "--leak-check=full"
-  }
-}
-
 # Backported from Python 3.1 posixpath.py
 def _relpath(path, start=None):
     """Return a relative version of a path"""
 
     if not path:
         raise ValueError("no path specified")
 
     if start is None:
@@ -221,18 +209,20 @@ def run_cmd_avoid_stdio(cmdline, env, ti
 def run_test(test, lib_dir, shell_args):
     cmd = get_test_cmd(test.path, test.jitflags, lib_dir, shell_args)
 
     if (test.valgrind and
         any([os.path.exists(os.path.join(d, 'valgrind'))
              for d in os.environ['PATH'].split(os.pathsep)])):
         valgrind_prefix = [ 'valgrind',
                             '-q',
-                            '--smc-check=all',
+                            '--smc-check=all-non-file',
                             '--error-exitcode=1',
+                            '--gen-suppressions=all',
+                            '--show-possibly-lost=no',
                             '--leak-check=full']
         if os.uname()[0] == 'Darwin':
             valgrind_prefix += ['--dsymutil=yes']
         cmd = valgrind_prefix + cmd
 
     if OPTIONS.show_cmd:
         print(subprocess.list2cmdline(cmd))