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:
Jim Meyering 2011-01-19 22:12:43 +01:00
parent 955695aea8
commit ebfc46553d
3 changed files with 35 additions and 0 deletions

1
THANKS
View File

@ -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>

View File

@ -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
View 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