From 30686b5fd9754302e43774228a73656fd8f2f697 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@fb.com>
Date: Fri, 23 Sep 2016 23:02:31 -0700
Subject: [PATCH] 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.
---
 tests/pcre-jitstack | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/pcre-jitstack b/tests/pcre-jitstack
index 7945dec..b473b12 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;
-- 
2.8.0-rc2

