summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-05-09 18:29:22 +0200
committerJim Meyering <meyering@redhat.com>2010-05-09 18:29:22 +0200
commit6ac165922c9874246034352ee87b1e40ccfec11c (patch)
treeed08b9641fe72148443a4bd24b0fabcb30f26633 /cfg.mk
parentcab21195422804046a7f2b18de2282a46a2e8f39 (diff)
downloadcoreutils-6ac165922c9874246034352ee87b1e40ccfec11c.tar.xz
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.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index 6153f5308..d41746144 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 $@