check-spacing: remove virAssertCmpInt exception

The macro is now called testAssertEq and no longer
takes an operator as its argument.
This commit is contained in:
Ján Tomko 2016-06-14 18:42:12 +02:00
parent a2762b93fd
commit 633daa4c57

View File

@ -160,11 +160,8 @@ foreach my $file (@ARGV) {
}
# Require spaces around assignment '=', compounds and '=='
# with the exception of virAssertCmpInt()
$tmpdata = $data;
$tmpdata =~ s/(virAssertCmpInt\(.* ).?=,/$1op,/;
if ($tmpdata =~ /[^ ]\b[!<>&|\-+*\/%\^=]?=[^=]/ ||
$tmpdata =~ /=[^= \\\n]/) {
if ($data =~ /[^ ]\b[!<>&|\-+*\/%\^=]?=/ ||
$data =~ /=[^= \\\n]/) {
print "Spacing around '=' or '==':\n";
print "$file:$.: $line";
$ret = 1;