diff tests/test-run-tests.t @ 18202:fb0ae4cd706d stable

merge i18n heads
author Matt Mackall <mpm@selenic.com>
date Wed, 02 Jan 2013 00:02:22 -0600
parents 327fbe0b84fd
children 8a2dfac89ad6
line wrap: on
line diff
--- a/tests/test-run-tests.t	Sat Nov 24 01:40:39 2012 +0400
+++ b/tests/test-run-tests.t	Wed Jan 02 00:02:22 2013 -0600
@@ -52,6 +52,28 @@
   $ echo 'foo (re)'
   foo (re)
 
+Windows: \r\n is handled like \n and can be escaped:
+
+#if windows
+  $ printf 'crlf\r\ncr\r\tcrlf\r\ncrlf\r\n'
+  crlf
+  cr\r (no-eol) (esc)
+  \tcrlf (esc)
+  crlf\r (esc)
+#endif
+
+Combining esc with other markups - and handling lines ending with \r instead of \n:
+
+  $ printf 'foo/bar\r'
+  foo/bar\r (no-eol) (glob) (esc)
+#if windows
+  $ printf 'foo\\bar\r'
+  foo/bar\r (no-eol) (glob) (esc)
+#endif
+  $ printf 'foo/bar\rfoo/bar\r'
+  foo.bar\r \(no-eol\) (re) (esc)
+  foo.bar\r \(no-eol\) (re)
+
 testing hghave
 
   $ "$TESTDIR/hghave" true
@@ -95,5 +117,5 @@
 
 Exit code:
 
-  $ (exit 1) 
+  $ (exit 1)
   [1]