1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Gcov support improvements

- address review feedback (cleaner perl code)
This commit is contained in:
Sergey Petrunya
2009-09-18 05:15:29 +04:00
parent b495b3db23
commit 6e0da2750c
2 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ foreach my $in_file_name ( @ARGV )
#
my @arr= split(/:/, $line);
if ($skipping || $line =~ /purecov: *(inspected|deadcode)/ ||
$arr[2] =~ m/^{ */)
$arr[2] =~ m/^{ *$/)
{
# Change '####' to '-'.
$arr[0] =~ s/#####/ -/g;
@ -57,8 +57,7 @@ foreach my $in_file_name ( @ARGV )
}
close(IN);
close(OUT);
system("cat $out_file_name > $in_file_name");
system("rm $out_file_name");
system("mv", "-f", $out_file_name, $in_file_name);
}