diff options
Diffstat (limited to 'third_party/lcov')
-rwxr-xr-x | third_party/lcov/bin/mcov | 14 |
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"); |