diff options
Diffstat (limited to '3rdParty/LCov/gendesc')
-rwxr-xr-x | 3rdParty/LCov/gendesc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/3rdParty/LCov/gendesc b/3rdParty/LCov/gendesc index e7a8113..522ef69 100755 --- a/3rdParty/LCov/gendesc +++ b/3rdParty/LCov/gendesc @@ -41,7 +41,7 @@ use Getopt::Long; # Constants -our $lcov_version = "LCOV version 1.7"; +our $lcov_version = 'LCOV version 1.9'; our $lcov_url = "http://ltp.sourceforge.net/coverage/lcov.php"; our $tool_name = basename($0); @@ -67,6 +67,9 @@ our $input_filename; $SIG{__WARN__} = \&warn_handler; $SIG{__DIE__} = \&die_handler; +# Prettify version string +$lcov_version =~ s/\$\s*Revision\s*:?\s*(\S+)\s*\$/$1/; + # Parse command line options if (!GetOptions("output-filename=s" => \$output_filename, "version" =>\$version, @@ -169,7 +172,7 @@ sub gen_desc() { chomp($_); - if (/^\s*(\w[\w-]*)(\s*)$/) + if (/^(\w[\w-]*)(\s*)$/) { # Matched test name # Name starts with alphanum or _, continues with |