]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: add 'returns_' to exclude list in sc_prohibit_and_fail_1
authorBernhard Voelker <mail@bernhard-voelker.de>
Sun, 13 Nov 2016 17:16:32 +0000 (18:16 +0100)
committerBernhard Voelker <mail@bernhard-voelker.de>
Sun, 13 Nov 2016 17:16:32 +0000 (18:16 +0100)
The previous commit v8.25-96-g22063c8 lets 'make syntax-check' fail,
because the above check falsely detects a case where 'returns_' is
already in use.

* cfg.mk (sc_prohibit_and_fail_1): Add 'returns_' to exclude list.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 11e42b92fb24cd1d5b4410c0882f56c79ada8518..a05fc02917f9c7cec46e200b39ffe0b333dded64 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -502,7 +502,7 @@ sc_prohibit_fail_0:
 # independently check its contents and thus detect any crash messages.
 sc_prohibit_and_fail_1:
        @prohibit='&& fail=1'                                           \
-       exclude='(stat|kill|test |EGREP|grep|compare|2> *[^/])'         \
+       exclude='(returns_|stat|kill|test |EGREP|grep|compare|2> *[^/])' \
        halt='&& fail=1 detected. Please use: returns_ 1 ... || fail=1' \
        in_vc_files='^tests/'                                           \
          $(_sc_search_regexp)