Merge branch 'tb/test-apfs-utf8-normalization'
authorJunio C Hamano <gitster@pobox.com>
Wed, 23 May 2018 05:38:21 +0000 (14:38 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 May 2018 05:38:21 +0000 (14:38 +0900)
A test to see if the filesystem normalizes UTF-8 filename has been
updated to check what we need to know in a more direct way, i.e. a
path created in NFC form can be accessed with NFD form (or vice
versa) to cope with APFS as well as HFS.

* tb/test-apfs-utf8-normalization:
test: correct detection of UTF8_NFD_TO_NFC for APFS

t/test-lib.sh
index ea2bbaaa7ab4dc77d0ef13cafbe45d1b12bd67e8..f3771ab195bad599e908b2ceb1d956fed5213e9b 100644 (file)
@@ -1106,12 +1106,7 @@ test_lazy_prereq UTF8_NFD_TO_NFC '
        auml=$(printf "\303\244")
        aumlcdiar=$(printf "\141\314\210")
        >"$auml" &&
-       case "$(echo *)" in
-       "$aumlcdiar")
-               true ;;
-       *)
-               false ;;
-       esac
+       test -f "$aumlcdiar"
 '
 
 test_lazy_prereq AUTOIDENT '