t9822: skip tests if file names cannot be ISO-8859-1 encoded

Most notably, it seems that macOS' APFS does not allow that. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Apr 14, 2019 at 14:19 UTC 38891496197e27f537cabf3a43e2b73330da1837
1 file changed +7
t/t9822-git-p4-path-encoding.sh
+7
@@ -7,6 +7,13 @@ test_description='Clone repositories with non ASCII paths'
7 UTF8_ESCAPED="a-\303\244_o-\303\266_u-\303\274.txt"
8 ISO8859_ESCAPED="a-\344_o-\366_u-\374.txt"
9
10 +ISO8859="$(printf "$ISO8859_ESCAPED")" &&
11 +echo content123 >"$ISO8859" &&
12 +rm "$ISO8859" || {
13 + skip_all="fs does not accept ISO-8859-1 filenames"
14 + test_done
15 +}
16 +
17 test_expect_success 'start p4d' '
18 start_p4d
19 '