summaryrefslogtreecommitdiff
path: root/tests/pcre-jitstack
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2016-11-28 14:16:18 -0800
committerJim Meyering <meyering@fb.com>2016-11-28 14:17:07 -0800
commitb7c4caec669d18ac7c5a692c10da7ddcc0e1f2a5 (patch)
tree3506983bc6387c4dea00cb30e4ef752f36ece493 /tests/pcre-jitstack
parent03b491dd84986bf52df10d6dd0395240f1f18ed4 (diff)
downloadgrep-b7c4caec669d18ac7c5a692c10da7ddcc0e1f2a5.tar.gz
tests: use "returns_ N env VAR=val ..."
rather than "VAR=val returns_ N ..." Some shells do not propagate envvar settings through our use of the "returns_" function, so set any envvar via use of "env". This was an issue at least on Ubuntu and Debian-based systems, presumably due to their common use of "dash" as /bin/sh. Reported by Assaf Gordon. * tests/char-class-multibyte: As above. * tests/euc-mb: Likewise. * tests/false-match-mb-non-utf8: Likewise. * tests/pcre-infloop: Likewise. * tests/pcre-jitstack: Likewise. * tests/sjis-mb: Likewise. * tests/warn-char-classes: Likewise.
Diffstat (limited to 'tests/pcre-jitstack')
-rwxr-xr-xtests/pcre-jitstack2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pcre-jitstack b/tests/pcre-jitstack
index a7bca79b..5bdb5a8b 100755
--- a/tests/pcre-jitstack
+++ b/tests/pcre-jitstack
@@ -52,7 +52,7 @@ if test $? != 1; then
# Rerun that same test, but now with no limit on stack size:
(ulimit -s unlimited;
- LC_ALL=C returns_ 1 grep -P -n '^([/](?!/)|[^/])*~/.*' pcrejit.txt) \
+ returns_ 1 env LC_ALL=C grep -P -n '^([/](?!/)|[^/])*~/.*' pcrejit.txt) \
|| fail=1
fi