diff options
author | Jim Meyering <meyering@redhat.com> | 2009-10-30 11:09:50 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-10-30 12:50:31 +0100 |
commit | 71c2f881558e46f79bc4c515b34953a59ba8c50d (patch) | |
tree | dde3a2245d1601274f9edd4b98bd258c9f9cb2dd /cfg.mk | |
parent | 3c88587b2eadee11413f4207abbbf13af07c438d (diff) | |
download | coreutils-71c2f881558e46f79bc4c515b34953a59ba8c50d.tar.xz |
tests: prohibit fail=0 initialization
* cfg.mk (sc_prohibit_fail_0): New rule.
* .x-sc_prohibit_fail_0: New file.
* Makefile.am (syntax_check_exceptions): Distribute the new file.
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -232,13 +232,9 @@ sc_prohibit_emacs__indent_tabs_mode__setting: # Ensure that each file that contains fail=1 also contains fail=0. # Otherwise, setting file=1 in the environment would make tests fail unexpectedly. -sc_fail_is_initialized: - @files=$$(grep -l -E '\<fail=1$$' $$($(VC_LIST_EXCEPT))); \ - if test "$$?" = 0; then \ - grep -LE '\<fail=0$$' $$files | grep . && \ - { echo '$(ME): the above files do not set fail=0' \ - 1>&2; exit 1; } || :; \ - else :; \ - fi +sc_prohibit_fail_0: + @re='\<fail=0\>' \ + msg='fail=0 initialization' \ + $(_prohibit_regexp) include $(srcdir)/dist-check.mk |