summaryrefslogtreecommitdiffstats
path: root/tools/code_coverage
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 18:31:49 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 18:31:49 +0000
commit587274f6a4912bcc3a7ff225a55992284870fac5 (patch)
tree74e505d087a53aeeb06a3b9ae1bf2910d22907b7 /tools/code_coverage
parent22e5a68ba753897fab769561986272b0d472a8c9 (diff)
downloadchromium_src-587274f6a4912bcc3a7ff225a55992284870fac5.zip
chromium_src-587274f6a4912bcc3a7ff225a55992284870fac5.tar.gz
chromium_src-587274f6a4912bcc3a7ff225a55992284870fac5.tar.bz2
Fix Linux code coverage.
Review URL: http://codereview.chromium.org/141016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/code_coverage')
-rwxr-xr-xtools/code_coverage/coverage_posix.py15
-rwxr-xr-x[-rw-r--r--]tools/code_coverage/croc.py0
2 files changed, 4 insertions, 11 deletions
diff --git a/tools/code_coverage/coverage_posix.py b/tools/code_coverage/coverage_posix.py
index 591ed33..3a122fa 100755
--- a/tools/code_coverage/coverage_posix.py
+++ b/tools/code_coverage/coverage_posix.py
@@ -138,7 +138,7 @@ class Coverage(object):
# If asked, make this REAL fast for testing.
if self.options.fast_test:
- cmdlist.append('--gtest_filter=TupleTest*')
+ cmdlist.append('--gtest_filter=RenderWidgetHost*')
retcode = subprocess.call(cmdlist)
if retcode:
@@ -149,16 +149,9 @@ class Coverage(object):
def GenerateLcov(self):
"""Convert profile data to lcov."""
- if self.IsLinux():
- command = [self.lcov,
- '--directory', self.directory,
- '--capture',
- '--output-file',
- self.coverage_info_file]
- else:
- command = [self.mcov,
- '--directory', self.directory_parent,
- '--output', self.coverage_info_file]
+ command = [self.mcov,
+ '--directory', self.directory_parent,
+ '--output', self.coverage_info_file]
print >>sys.stderr, 'Assembly command: ' + ' '.join(command)
retcode = subprocess.call(command)
if retcode:
diff --git a/tools/code_coverage/croc.py b/tools/code_coverage/croc.py
index 9d2f3ac..9d2f3ac 100644..100755
--- a/tools/code_coverage/croc.py
+++ b/tools/code_coverage/croc.py