changeset 23353:c2907334276b

tests: handle differences between missing file error strings on Windows and Unix
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 18 Nov 2014 23:51:58 -0500
parents 5bd04faaa3ee
children 918c77775df6
files tests/test-status-rev.t
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.