summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorTorsten Bögershausen <tboegi@web.de>2018-04-30 06:35:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-01 22:52:32 (GMT)
commit742ae10e355041bb19b8d3d530453136e2a8eff2 (patch)
tree9293a3072a79ad03b616cafbfef443cf5f4eb662 /t/test-lib.sh
parentfc849d8d6b90e5c1e0c37bc0d60dd92b2fe7347f (diff)
downloadgit-742ae10e355041bb19b8d3d530453136e2a8eff2.zip
git-742ae10e355041bb19b8d3d530453136e2a8eff2.tar.gz
git-742ae10e355041bb19b8d3d530453136e2a8eff2.tar.bz2
test: correct detection of UTF8_NFD_TO_NFC for APFS
On HFS (which is the default Mac filesystem prior to High Sierra), unicode names are "decomposed" before recording. On APFS, which appears to be the new default filesystem in Mac OS High Sierra, filenames are recorded as specified by the user. APFS continues to allow the user to access it via any name that normalizes to the same thing. This difference causes t0050-filesystem.sh to fail two tests. Improve the test for a NFD/NFC in test-lib.sh: Test if the same file can be reached in pre- and decomposed unicode. Reported-By: Elijah Newren <newren@gmail.com> Signed-off-by: Torsten Bögershausen <tboegi@web.de> Tested-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 5fbd8d4..8abd135 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -1092,12 +1092,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 '