summaryrefslogtreecommitdiff
path: root/tests/checkpatch.at
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@samsung.com>2019-07-12 15:57:02 +0300
committerIlya Maximets <i.maximets@samsung.com>2019-07-12 19:22:14 +0300
commitdf8c04b1c8cdae03f9a82702a6e350243f48994a (patch)
tree539cf7e193f0b899765436faf74bd7a15b3f2e87 /tests/checkpatch.at
parentfbe67a7d17a2439297c342f951fb1fba43442e67 (diff)
downloadopenvswitch-df8c04b1c8cdae03f9a82702a6e350243f48994a.tar.gz
checkpatch: Check FOR_EACH loops with numbers.
OVS has defines for loops like 'BITMAP_FOR_EACH_1' or 'ULLONG_FOR_EACH_1', but the regexp in checkpatch doesn't match with numbers and skips these loops while checking. This patch adds numbers into regexp and adds some FER_EACH loops to the unit tests. Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Acked-by: Ben Pfaff <blp@ovn.org> Acked-by: Aaron Conole <aconole@redhat.com>
Diffstat (limited to 'tests/checkpatch.at')
-rwxr-xr-xtests/checkpatch.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkpatch.at b/tests/checkpatch.at
index 07f4b137c..f3b26dd34 100755
--- a/tests/checkpatch.at
+++ b/tests/checkpatch.at
@@ -179,7 +179,7 @@ m4_define([COMMON_PATCH_HEADER], [dnl
AT_SETUP([checkpatch - parenthesized constructs])
-for ctr in 'if' 'while' 'switch'; do
+for ctr in 'if' 'while' 'switch' 'HMAP_FOR_EACH' 'BITMAP_FOR_EACH_1'; do
try_checkpatch \
"COMMON_PATCH_HEADER
+ $ctr (first_run) {