summaryrefslogtreecommitdiff
path: root/tests/pcre-jitstack
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2016-09-23 23:02:31 -0700
committerJim Meyering <meyering@fb.com>2016-09-24 09:22:32 -0700
commit0b7fae5850db49a4238511d10a7f0ebb7067abaa (patch)
tree107671a2b2394675881de7c4f9d9d4046cf2079b /tests/pcre-jitstack
parenteaa1541d8e714621abe5a8235f4a59cbf64b2d1f (diff)
downloadgrep-0b7fae5850db49a4238511d10a7f0ebb7067abaa.tar.gz
tests: avoid erroneous failure of pcre-jitstack test
On some systems (*BSD), 'ulimit -s unlimited' would fail, yet the test for that mistakenly masked the failure, so the following grep command ended up failing with a segfault. * tests/pcre-jitstack: Don't mask the ulimit failure. Reported privately by Nelson H. F. Beebe. https://bugs.gnu.org/24524
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 7945dec8..b473b128 100755
--- a/tests/pcre-jitstack
+++ b/tests/pcre-jitstack
@@ -48,7 +48,7 @@ if test $? != 1; then
# Use ulimit to remove that limit, if possible.
# If ulimit is not usable, just skip this test.
- (ulimit -s unlimited; : ) || skip_ this shell lacks ulimit support
+ (ulimit -s unlimited) || skip_ this shell lacks ulimit support
# Rerun that same test, but now with no limit on stack size:
(ulimit -s unlimited;