Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: tools/valgrind/valgrind_test.py

Issue 7003046: Use NSS_DISABLE_UNLOAD in valgrind and heapcheck scripts to avoid unsymbolized backtraces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright dates Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/valgrind/valgrind.sh ('k') | tools/valgrind/valgrind_webkit_tests.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # valgrind_test.py 6 # valgrind_test.py
7 7
8 """Runs an exe through Valgrind and puts the intermediate files in a 8 """Runs an exe through Valgrind and puts the intermediate files in a
9 directory. 9 directory.
10 """ 10 """
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 def Execute(self): 150 def Execute(self):
151 """ Execute the app to be tested after successful instrumentation. 151 """ Execute the app to be tested after successful instrumentation.
152 Full execution command-line provided by subclassers via proc.""" 152 Full execution command-line provided by subclassers via proc."""
153 logging.info("starting execution...") 153 logging.info("starting execution...")
154 154
155 proc = self.ToolCommand() 155 proc = self.ToolCommand()
156 156
157 add_env = { 157 add_env = {
158 "G_SLICE" : "always-malloc", 158 "G_SLICE" : "always-malloc",
159 "NSS_DISABLE_UNLOAD" : "1",
159 "NSS_DISABLE_ARENA_FREE_LIST" : "1", 160 "NSS_DISABLE_ARENA_FREE_LIST" : "1",
160 "GTEST_DEATH_TEST_USE_FORK" : "1", 161 "GTEST_DEATH_TEST_USE_FORK" : "1",
161 } 162 }
162 for k,v in add_env.iteritems(): 163 for k,v in add_env.iteritems():
163 logging.info("export %s=%s", k, v) 164 logging.info("export %s=%s", k, v)
164 os.putenv(k, v) 165 os.putenv(k, v)
165 166
166 return common.RunSubprocess(proc, self._timeout) 167 return common.RunSubprocess(proc, self._timeout)
167 168
168 def RunTestsAndAnalyze(self, check_sanity): 169 def RunTestsAndAnalyze(self, check_sanity):
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 platform_name = sys.platform + "(Unknown)" 955 platform_name = sys.platform + "(Unknown)"
955 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, 956 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name,
956 platform_name) 957 platform_name)
957 958
958 def CreateTool(tool): 959 def CreateTool(tool):
959 return ToolFactory().Create(tool) 960 return ToolFactory().Create(tool)
960 961
961 if __name__ == '__main__': 962 if __name__ == '__main__':
962 logging.error(sys.argv[0] + " can not be run from command line") 963 logging.error(sys.argv[0] + " can not be run from command line")
963 sys.exit(1) 964 sys.exit(1)
OLDNEW
« no previous file with comments | « tools/valgrind/valgrind.sh ('k') | tools/valgrind/valgrind_webkit_tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698