summaryrefslogtreecommitdiff
path: root/top
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2012-03-01 23:20:22 +0100
committerEric Blake <eblake@redhat.com>2012-03-01 17:19:08 -0700
commit44de969cd62abbfe3e7cc7641a8dea7673fd2d6d (patch)
tree2ba19f3a8e0ac82b64571d2f8da5719df618b86a /top
parent727075d03c670affa68f71313979781f5ba9bbfc (diff)
downloadgnulib-44de969cd62abbfe3e7cc7641a8dea7673fd2d6d.tar.gz
maint.mk: avoid spurious failure of _sc_search_regexp-using tests
* top/maint.mk: Initialize _sc_search_regexp parameters, so that envvar settings cannot interfere. Otherwise, setting envvars like prohibit=foo require=bar, etc. would cause spurious test failures.
Diffstat (limited to 'top')
-rw-r--r--top/maint.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/top/maint.mk b/top/maint.mk
index 4b0f4b74dd..839f7b2c37 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -219,6 +219,17 @@ syntax-check: $(local-check)
# when filtering by name via in_files, we explicitly filter out matching
# names here as well.
+# Initialize each, so that envvar settings cannot interfere.
+export require =
+export prohibit =
+export exclude =
+export in_vc_files =
+export in_files =
+export containing =
+export non_containing =
+export halt =
+export with_grep_options =
+
# By default, _sc_search_regexp does not ignore case.
export ignore_case =
_ignore_case = $$(test -n "$$ignore_case" && printf %s -i || :)