summaryrefslogtreecommitdiff
path: root/t/t9822-git-p4-path-encoding.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-04-14 21:19:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-04-15 03:03:14 (GMT)
commit38891496197e27f537cabf3a43e2b73330da1837 (patch)
treeed2846980532d77aebef1850365d97d2a4417f60 /t/t9822-git-p4-path-encoding.sh
parentaeb582a98374c094361cba1bd756dc6307432c42 (diff)
downloadgit-38891496197e27f537cabf3a43e2b73330da1837.zip
git-38891496197e27f537cabf3a43e2b73330da1837.tar.gz
git-38891496197e27f537cabf3a43e2b73330da1837.tar.bz2
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>
Diffstat (limited to 't/t9822-git-p4-path-encoding.sh')
-rwxr-xr-xt/t9822-git-p4-path-encoding.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t9822-git-p4-path-encoding.sh b/t/t9822-git-p4-path-encoding.sh
index c78477c..de0b465 100755
--- a/t/t9822-git-p4-path-encoding.sh
+++ b/t/t9822-git-p4-path-encoding.sh
@@ -7,6 +7,13 @@ test_description='Clone repositories with non ASCII paths'
UTF8_ESCAPED="a-\303\244_o-\303\266_u-\303\274.txt"
ISO8859_ESCAPED="a-\344_o-\366_u-\374.txt"
+ISO8859="$(printf "$ISO8859_ESCAPED")" &&
+echo content123 >"$ISO8859" &&
+rm "$ISO8859" || {
+ skip_all="fs does not accept ISO-8859-1 filenames"
+ test_done
+}
+
test_expect_success 'start p4d' '
start_p4d
'