From 55f2675e4e7b15f40e5a3a930f36d78336735aca Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Jan 07 2005 12:42:51 +0000 Subject: Fixed some tests. --- diff --git a/grep-2.5.1-tests.patch b/grep-2.5.1-tests.patch index d33069f..2934a21 100644 --- a/grep-2.5.1-tests.patch +++ b/grep-2.5.1-tests.patch @@ -85,7 +85,7 @@ +# Test that -F --color=always prefers longer matches. +test5="`echo 'Cosi tu ČišÍ...' \ + | LC_ALL=cs_CZ.UTF-8 ${GREP} --color=always -Fi -e 'čiš' -e 'čiší'`" -+if echo "$test5" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*mČišÍ.*\[.*m\.\.\.'; then ++if echo "$test5" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*mČišÍ.*\[.*m\(.\[K\)\?\.\.\.'; then + : +else + echo "Test #5 F failed: $test5" @@ -97,7 +97,7 @@ +# Test that -{G,E} --color=always prefers earlier pattern matches. +test6="`echo 'Cosi tu ČišÍ...' \ + | LC_ALL=cs_CZ.UTF-8 ${GREP} --color=always -${mode}i -e 'čiš' -e 'čiší'`" -+if echo "$test6" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*mČiš.*\[.*mÍ\.\.\.'; then ++if echo "$test6" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*mČiš.*\[.*m\(.\[K\)\?Í\.\.\.'; then + : +else + echo "Test #6 ${mode} failed: $test6" @@ -107,7 +107,7 @@ +# Test that -{G,E} --color=always prefers earlier pattern matches. +test7="`echo 'Cosi tu ČišÍ...' \ + | LC_ALL=cs_CZ.UTF-8 ${GREP} --color=always -${mode}i -e 'čiší' -e 'čiš'`" -+if echo "$test7" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*mČišÍ.*\[.*m\.\.\.'; then ++if echo "$test7" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*mČišÍ.*\[.*m\(.\[K\)\?\.\.\.'; then + : +else + echo "Test #7 ${mode} failed: $test7"