diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 22:47:32 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 22:47:32 +0000 |
commit | 4d602ebb885d149370e140f73824ac7130ffcd3b (patch) | |
tree | 33c28c151c5f560ae83197bbddfdb5554eb81dcf /third_party/lcov | |
parent | 0401163d4c6a45f24cc4e310b5eafc3e8c6da707 (diff) | |
download | chromium_src-4d602ebb885d149370e140f73824ac7130ffcd3b.zip chromium_src-4d602ebb885d149370e140f73824ac7130ffcd3b.tar.gz chromium_src-4d602ebb885d149370e140f73824ac7130ffcd3b.tar.bz2 |
Add unit_tests (Chrome browser unit tests) to Mac/Linux coverage.
Minor fixes to coverage related scripts.
Review URL: http://codereview.chromium.org/118298
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17785 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/lcov')
-rwxr-xr-x | third_party/lcov/bin/mcov | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/third_party/lcov/bin/mcov b/third_party/lcov/bin/mcov index b04324b..8bbb2cc 100755 --- a/third_party/lcov/bin/mcov +++ b/third_party/lcov/bin/mcov @@ -252,8 +252,10 @@ sub read_gcov_file(@) { my $number; local *INPUT; - ## TODO(ajeya): Exit more gracefully here. - open(INPUT, $filename) or die("ERROR: cannot read $filename!\n"); + if (!open(INPUT, $filename)) { + warn("WARNING: cannot read $filename!\n"); + return @result; + } # Parse gcov output and populate the array my @lines = <INPUT>; |