File tree 6 files changed +10
-10
lines changed
6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ use Cwd qw/abs_path/;
44
44
45
45
# Constants
46
46
our $tool_dir = abs_path(dirname($0 ));
47
- our $lcov_version = ' LCOV version ' .` $tool_dir /get_version.sh --full` ;
47
+ our $lcov_version = ' LCOV version ' .` " $tool_dir " /get_version.sh --full` ;
48
48
our $lcov_url = " http://ltp.sourceforge.net/coverage/lcov.php" ;
49
49
our $tool_name = basename($0 );
50
50
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ use Cwd qw/abs_path cwd/;
76
76
# Global constants
77
77
our $title = " LCOV - code coverage report" ;
78
78
our $tool_dir = abs_path(dirname($0 ));
79
- our $lcov_version = ' LCOV version ' .` $tool_dir /get_version.sh --full` ;
79
+ our $lcov_version = ' LCOV version ' .` " $tool_dir " /get_version.sh --full` ;
80
80
our $lcov_url = " http://ltp.sourceforge.net/coverage/lcov.php" ;
81
81
our $tool_name = basename($0 );
82
82
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ if( $^O eq "msys" )
70
70
71
71
# Constants
72
72
our $tool_dir = abs_path(dirname($0 ));
73
- our $lcov_version = ' LCOV version ' .` $tool_dir /get_version.sh --full` ;
73
+ our $lcov_version = ' LCOV version ' .` " $tool_dir " /get_version.sh --full` ;
74
74
our $lcov_url = " http://ltp.sourceforge.net/coverage/lcov.php" ;
75
75
our $gcov_tool = " gcov" ;
76
76
our $tool_name = basename($0 );
@@ -2673,7 +2673,7 @@ sub get_gcov_version()
2673
2673
# Default target: x86_64-apple-darwin16.0.0
2674
2674
# Host CPU: haswell
2675
2675
2676
- open (GCOV_PIPE, " -|" , " $gcov_tool --version" )
2676
+ open (GCOV_PIPE, " -|" , " \" $gcov_tool \" --version" )
2677
2677
or die (" ERROR: cannot retrieve gcov version!\n " );
2678
2678
local $/ ;
2679
2679
$version_string = <GCOV_PIPE>;
@@ -4479,7 +4479,7 @@ sub debug($)
4479
4479
4480
4480
sub get_gcov_capabilities ()
4481
4481
{
4482
- my $help = ` $gcov_tool --help` ;
4482
+ my $help = ` " $gcov_tool " --help` ;
4483
4483
my %capabilities ;
4484
4484
my %short_option_translations = (
4485
4485
' a' => ' all-blocks' ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ use Cwd qw/abs_path/;
38
38
39
39
# Constants
40
40
our $tool_dir = abs_path(dirname($0 ));
41
- our $lcov_version = ' LCOV version ' .` $tool_dir /get_version.sh --full` ;
41
+ our $lcov_version = ' LCOV version ' .` " $tool_dir " /get_version.sh --full` ;
42
42
our $lcov_url = " http://ltp.sourceforge.net/coverage/lcov.php" ;
43
43
our $tool_name = basename($0 );
44
44
Original file line number Diff line number Diff line change 4
4
#
5
5
# Print lcov version or release information as provided by Git, .version
6
6
# or a fallback.
7
-
8
- TOOLDIR=$( cd $( dirname $0 ) > /dev/null ; pwd)
9
- GITVER=$( cd $TOOLDIR ; git describe --tags 2> /dev/null)
7
+ DIRPATH= $( dirname " $0 " )
8
+ TOOLDIR=$( cd " $DIRPATH " > /dev/null ; pwd)
9
+ GITVER=$( cd " $TOOLDIR " ; git describe --tags 2> /dev/null)
10
10
11
11
if [ -z " $GITVER " ] ; then
12
12
# Get version information from file
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ use Cwd qw /abs_path getcwd/;
73
73
74
74
# Global constants
75
75
our $tool_dir = abs_path(dirname($0 ));
76
- our $lcov_version = ' LCOV version ' .` $tool_dir /get_version.sh --full` ;
76
+ our $lcov_version = ' LCOV version ' .` " $tool_dir " /get_version.sh --full` ;
77
77
our $lcov_url = " http://ltp.sourceforge.net/coverage/lcov.php" ;
78
78
our $tool_name = basename($0 );
79
79
You can’t perform that action at this time.
0 commit comments