mirror of
https://https.git.savannah.gnu.org/git/grep.git
synced 2026-01-27 01:44:22 +00:00
tests: add a known-to-fail test
* tests/turkish-I: New test. * tests/Makefile.am (TESTS): Add it. (XFAIL_TESTS): Add here, too. Reported by Ilya Basin.
This commit is contained in:
parent
955695aea8
commit
ebfc46553d
1
THANKS
1
THANKS
@ -37,6 +37,7 @@ H. Merijn Brand <h.m.brand@hccnet.nl>
|
||||
Harald Hanche-Olsen <hanche@math.ntnu.no>
|
||||
Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
|
||||
Heikki Korpela <heko@iki.fi>
|
||||
Ilya Basin <basinilya@gmail.com>
|
||||
Isamu Hasegawa <isamu@yamato.ibm.com>
|
||||
Jaroslav Škarvada <jskarvad@redhat.com>
|
||||
Jeff Bailey <jbailey@nisa.net>
|
||||
|
||||
@ -32,6 +32,7 @@ XFAIL_TESTS = \
|
||||
if USE_INCLUDED_REGEX
|
||||
XFAIL_TESTS += equiv-classes
|
||||
endif
|
||||
XFAIL_TESTS += turkish-I
|
||||
|
||||
TESTS = \
|
||||
backref \
|
||||
@ -71,6 +72,7 @@ TESTS = \
|
||||
spencer1 \
|
||||
spencer1-locale \
|
||||
status \
|
||||
turkish-I \
|
||||
warn-char-classes \
|
||||
word-delim-multibyte \
|
||||
word-multi-file \
|
||||
|
||||
32
tests/turkish-I
Executable file
32
tests/turkish-I
Executable file
@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
# grep -i in UTF-8: missing NL in output on line containing I WITH DOT (U+0130)
|
||||
|
||||
# Copyright (C) 2011 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ../src
|
||||
|
||||
require_en_utf8_locale_
|
||||
|
||||
fail=0
|
||||
|
||||
i='\xC4\xB0'
|
||||
printf "$i$i$i$i$i$i$i\n" > in || framework_failure_
|
||||
|
||||
LC_ALL=en_US.UTF-8 grep -i .... in > out || fail=1
|
||||
|
||||
compare out in || fail=1
|
||||
|
||||
Exit $fail
|
||||
Loading…
x
Reference in New Issue
Block a user