Last change
on this file was 3529, checked in by bird, 3 years ago |
Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.
|
-
Property svn:executable
set to
*
|
File size:
572 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # This would infloop for grep-2.6.1
|
---|
3 | . "${srcdir=.}/init.sh"; path_prepend_ ../src
|
---|
4 |
|
---|
5 | require_en_utf8_locale_
|
---|
6 | require_timeout_
|
---|
7 | require_compiled_in_MB_support
|
---|
8 |
|
---|
9 | encode() { echo "$1" | tr ABC '\357\274\241'; }
|
---|
10 |
|
---|
11 | encode ABC > in || framework_failure_
|
---|
12 | fail=0
|
---|
13 |
|
---|
14 | for LOC in en_US.UTF-8 $LOCALE_FR_UTF8; do
|
---|
15 | out=out1-$LOC
|
---|
16 | LC_ALL=$LOC timeout 10s grep -F "$(encode BC)" in > $out
|
---|
17 | status=$?
|
---|
18 | if test $status -eq 0; then
|
---|
19 | compare in $out
|
---|
20 | elif test $status -eq 1; then
|
---|
21 | compare_dev_null_ /dev/null $out
|
---|
22 | else
|
---|
23 | test $status -eq 2
|
---|
24 | fi || fail=1
|
---|
25 | done
|
---|
26 |
|
---|
27 | Exit $fail
|
---|
Note:
See
TracBrowser
for help on using the repository browser.