1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 10:51:48 +02:00

tests: loosen/tighten the always_defined_macros check

* cfg.mk (.re-defmac): Generate better regexps: allow white space
before the '#', and append a word-boundary requirement.
Without the latter, #define NULL_DEV ... would evoke a false-positive.
This commit is contained in:
Jim Meyering
2010-05-09 18:29:22 +02:00
parent cab2119542
commit 6ac165922c

2
cfg.mk
View File

@@ -128,7 +128,7 @@ gl_extract_significant_defines_ = \
done; \
) | sort -u \
| grep -Ev '^ATTRIBUTE_NORETURN' \
| sed 's/^/^# *define /' \
| sed 's/^/^ *# *define /;s/$$/\\>/' \
> $@-t
@mv $@-t $@