test-casefolding.t: demonstrate a bug with HFS+ ignoring some codepoints stable
authorAugie Fackler <raf@durin42.com>
Thu, 11 Dec 2014 15:42:49 -0500
branchstable
changeset 23595 035434b407be
parent 23594 6f53629ad273
child 23596 885bd7c5c7e3
test-casefolding.t: demonstrate a bug with HFS+ ignoring some codepoints
tests/test-casefolding.t
--- 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 ..