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

Unified Diff: third_party/lcov/bin/mcov

Issue 2630002: Added debugging output to mcov to help debug buildbot errors.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/lcov/bin/mcov
===================================================================
--- third_party/lcov/bin/mcov (revision 48638)
+++ third_party/lcov/bin/mcov (working copy)
@@ -48,6 +48,20 @@
# 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");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698