diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-11-11 11:15:26 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-11-11 20:00:54 -0800 |
commit | 2f3efcdf47b8442fdb31a3c9f08def2d04c80dec (patch) | |
tree | a65d7f39ccc489289d9f6fc1765733aac5202e5c | |
parent | 0690074f62b0e65e00c946cc606745dab008117d (diff) | |
download | grep-2f3efcdf47b8442fdb31a3c9f08def2d04c80dec.tar.gz |
tests: port to libpcre sans UTF-8 support
Problem reported by Nelson H. F. Beebe.
* tests/pcre-infloop, tests/pcre-invalid-utf8-input, tests/pcre-utf8:
Skip the test unless PCRE works in an en_US.UTF-8 locale.
-rwxr-xr-x | tests/pcre-infloop | 2 | ||||
-rwxr-xr-x | tests/pcre-invalid-utf8-input | 2 | ||||
-rwxr-xr-x | tests/pcre-utf8 | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/pcre-infloop b/tests/pcre-infloop index b92f8e10..80548447 100755 --- a/tests/pcre-infloop +++ b/tests/pcre-infloop @@ -18,10 +18,10 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. . "${srcdir=.}/init.sh"; path_prepend_ ../src -require_pcre_ require_timeout_ require_en_utf8_locale_ require_compiled_in_MB_support +LC_ALL=en_US.UTF-8 require_pcre_ printf 'a\201b\r' > in || framework_failure_ diff --git a/tests/pcre-invalid-utf8-input b/tests/pcre-invalid-utf8-input index 71d48775..3ae7f9ab 100755 --- a/tests/pcre-invalid-utf8-input +++ b/tests/pcre-invalid-utf8-input @@ -8,10 +8,10 @@ # notice and this notice are preserved. . "${srcdir=.}/init.sh"; path_prepend_ ../src -require_pcre_ require_timeout_ require_en_utf8_locale_ require_compiled_in_MB_support +LC_ALL=en_US.UTF-8 require_pcre_ fail=0 diff --git a/tests/pcre-utf8 b/tests/pcre-utf8 index 41676f44..2dda1166 100755 --- a/tests/pcre-utf8 +++ b/tests/pcre-utf8 @@ -8,8 +8,8 @@ # notice and this notice are preserved. . "${srcdir=.}/init.sh"; path_prepend_ ../src -require_pcre_ require_en_utf8_locale_ +LC_ALL=en_US.UTF-8 require_pcre_ fail=0 |