summaryrefslogtreecommitdiff
path: root/mysql-test/lib/process-purecov-annotations.pl
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2009-09-18 05:15:29 +0400
committerSergey Petrunya <psergey@askmonty.org>2009-09-18 05:15:29 +0400
commit879c7f175820c7c4b3f1213b12a264d642101fd9 (patch)
treea1b18c2132c5c69a6f26c17d93d6a0394d36d7cf /mysql-test/lib/process-purecov-annotations.pl
parent48831c7bb0d74cb515426bd63b9093c81d892d84 (diff)
downloadmariadb-git-879c7f175820c7c4b3f1213b12a264d642101fd9.tar.gz
Gcov support improvements
- address review feedback (cleaner perl code)
Diffstat (limited to 'mysql-test/lib/process-purecov-annotations.pl')
-rwxr-xr-xmysql-test/lib/process-purecov-annotations.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/mysql-test/lib/process-purecov-annotations.pl b/mysql-test/lib/process-purecov-annotations.pl
index 843d1d2f130..d533bd02fd6 100755
--- a/mysql-test/lib/process-purecov-annotations.pl
+++ b/mysql-test/lib/process-purecov-annotations.pl
@@ -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);
}