summaryrefslogtreecommitdiffstats
path: root/third_party/lcov
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-05 01:04:39 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-05 01:04:39 +0000
commitc813f5bb08d815f3f8495bdb4962c9228235b0f8 (patch)
tree1dc1ea656d7b80f1078752525b73356f5097519f /third_party/lcov
parenta55bfd3d8f23c22003cf6a0754aa320fe7b7d3e4 (diff)
downloadchromium_src-c813f5bb08d815f3f8495bdb4962c9228235b0f8.zip
chromium_src-c813f5bb08d815f3f8495bdb4962c9228235b0f8.tar.gz
chromium_src-c813f5bb08d815f3f8495bdb4962c9228235b0f8.tar.bz2
Added debugging output to mcov to help debug buildbot errors.
Die with non-zero return code if it can't operate properly. Review URL: http://codereview.chromium.org/2630002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48991 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/lcov')
-rwxr-xr-xthird_party/lcov/bin/mcov14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/lcov/bin/mcov b/third_party/lcov/bin/mcov
index 8bbb2cc..e6d3446 100755
--- a/third_party/lcov/bin/mcov
+++ b/third_party/lcov/bin/mcov
@@ -48,6 +48,20 @@ $directory = Cwd::abs_path($directory);
# convert the output file path to absolute path.
$output_filename = Cwd::abs_path($output_filename);
+# Output expected args for buildbot debugging assistance.
+my $cwd = getcwd();
+print "mcov: after abs_pathing\n";
+print "mcov: getcwd() = $cwd\n";
+print "mcov: directory for data files is $directory\n";
+print "mcov: output filename is $output_filename\n";
+
+# Sanity check; die if path is wrong.
+# We don't check for output_filename because... we create it.
+if (! -d $directory) {
+ print "mcov: Bad args passed; exiting with error.\n";
+ exit(1);
+}
+
# open file for output
open(INFO_HANDLE, ">$output_filename");