mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
maint: update syntax-check rule to also catch test's -o operator
* cfg.mk (sc_prohibit_test_minus_a): Rename... (sc_prohibit_test_minus_ao): ...and flag '-o', too.
This commit is contained in:
parent
156133597d
commit
271945a148
10
cfg.mk
10
cfg.mk
@ -270,10 +270,12 @@ sc_preprocessor_indentation:
|
||||
echo '$(ME): skipping test $@: cppi not installed' 1>&2; \
|
||||
fi
|
||||
|
||||
# Using test's -a operator is not portable.
|
||||
sc_prohibit_test_minus_a:
|
||||
@re='\<test .+ -[a] ' \
|
||||
msg='use "test C1 && test C2, not "test C1 -''a C2"' \
|
||||
_m1 = use "test C1 && test C2", not "test C1 -''a C2"
|
||||
_m2 = use "test C1 || test C2", not "test C1 -''o C2"
|
||||
# Using test's -a and -o operators is not portable.
|
||||
sc_prohibit_test_minus_ao:
|
||||
@re='\<test .+ -[ao] ' \
|
||||
msg='$(_m1); $(_m2)' \
|
||||
$(_prohibit_regexp)
|
||||
|
||||
sc_copyright_format:
|
||||
|
Loading…
x
Reference in New Issue
Block a user