changeset 23595:035434b407be stable

test-casefolding.t: demonstrate a bug with HFS+ ignoring some codepoints
author Augie Fackler <raf@durin42.com>
date Thu, 11 Dec 2014 15:42:49 -0500
parents 6f53629ad273
children 885bd7c5c7e3
files tests/test-casefolding.t
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-casefolding.t	Fri Dec 12 13:40:44 2014 -0500
+++ b/tests/test-casefolding.t	Thu Dec 11 15:42:49 2014 -0500
@@ -195,4 +195,17 @@
   $ hg qrefresh a # issue 3271, qrefresh with file handled case wrong
   $ hg status # empty status means the qrefresh worked
 
+#if osx
+
+We assume anyone running the tests on a case-insensitive volume on OS
+X will be using HFS+. If that's not true, this test will fail.
+
+Bug: some codepoints are to be ignored on HFS+:
+
+  $ rm A
+  >>> open(u'a\u200c'.encode('utf-8'), 'w').write('unicode is fun')
+  $ hg status
+  M A
+  ? a\xe2\x80\x8c (esc)
+#endif
   $ cd ..