tests: handle differences between missing file error strings on Windows and Unix
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 18 Nov 2014 23:51:58 -0500
changeset 23353 c2907334276b
parent 23352 5bd04faaa3ee
child 23354 918c77775df6
tests: handle differences between missing file error strings on Windows and Unix
tests/test-status-rev.t
--- a/tests/test-status-rev.t	Tue Nov 18 22:02:00 2014 -0500
+++ b/tests/test-status-rev.t	Tue Nov 18 23:51:58 2014 -0500
@@ -81,8 +81,13 @@
   $ hg status -A --rev 1 'glob:missing_*_missing-tracked'
   ! missing_content2_missing-tracked
   ! missing_missing_missing-tracked
+#if windows
+  $ hg status -A --rev 1 'glob:missing_missing_missing-untracked'
+  missing_missing_missing-untracked: The system cannot find the file specified
+#else
   $ hg status -A --rev 1 'glob:missing_missing_missing-untracked'
   missing_missing_missing-untracked: No such file or directory
+#endif
 
 Status between first and second commit. Should ignore dirstate status.