[libvirt] [PATCH 8/9] check-spacing: remove virAssertCmpInt exception

Ján Tomko jtomko at redhat.com
Wed Jun 15 10:06:57 UTC 2016


The macro is now called testAssertEq and no longer
takes an operator as its argument.
---
 build-aux/check-spacing.pl | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/build-aux/check-spacing.pl b/build-aux/check-spacing.pl
index 044cd25..f66ae10 100755
--- a/build-aux/check-spacing.pl
+++ b/build-aux/check-spacing.pl
@@ -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;
-- 
2.7.3




More information about the libvir-list mailing list