From: Jim Meyering Date: Sun, 9 May 2010 16:29:22 +0000 (+0200) Subject: tests: loosen/tighten the always_defined_macros check X-Git-Tag: v8.6~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ac165922c9874246034352ee87b1e40ccfec11c;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/cfg.mk b/cfg.mk index 6153f5308c..d417461447 100644 --- a/cfg.mk +++ b/cfg.mk @@ -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 $@