Skip to content

Commit dac30e7

Browse files
committed
Merge branch 'as/t7812-missing-redirects-fix'
Test fix. * as/t7812-missing-redirects-fix: t7812: expect failure for grep -i with invalid UTF-8 data t7812: add missing redirects
2 parents d37cfe3 + e714b89 commit dac30e7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

t/t7812-grep-icase-non-ascii.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,18 @@ test_expect_success GETTEXT_LOCALE,LIBPCRE2 'PCRE v2: grep ASCII from invalid UT
7070
test_expect_success GETTEXT_LOCALE,LIBPCRE2 'PCRE v2: grep non-ASCII from invalid UTF-8 data' '
7171
git grep -h "æ" invalid-0x80 >actual &&
7272
test_cmp expected actual &&
73-
git grep -h "(*NO_JIT)æ" invalid-0x80 &&
73+
git grep -h "(*NO_JIT)æ" invalid-0x80 >actual &&
7474
test_cmp expected actual
7575
'
7676

7777
test_expect_success GETTEXT_LOCALE,LIBPCRE2 'PCRE v2: grep non-ASCII from invalid UTF-8 data with -i' '
7878
test_might_fail git grep -hi "Æ" invalid-0x80 >actual &&
79-
test_cmp expected actual &&
80-
test_must_fail git grep -hi "(*NO_JIT)Æ" invalid-0x80 &&
81-
test_cmp expected actual
79+
if test -s actual
80+
then
81+
test_cmp expected actual
82+
fi &&
83+
test_must_fail git grep -hi "(*NO_JIT)Æ" invalid-0x80 >actual &&
84+
! test_cmp expected actual
8285
'
8386

8487
test_done

0 commit comments

Comments
 (0)