test-fastannotate: fix trivial output differences on Windows
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 21 Aug 2018 21:43:44 -0400
changeset 39249 aec7109aeb39
parent 39248 57d4754e44b8
child 39250 659f010ffa7e
test-fastannotate: fix trivial output differences on Windows
tests/test-fastannotate-hg.t
--- a/tests/test-fastannotate-hg.t	Tue Aug 21 21:29:10 2018 -0400
+++ b/tests/test-fastannotate-hg.t	Tue Aug 21 21:43:44 2018 -0400
@@ -594,28 +594,18 @@
 annotate missing file
 
   $ rm baz
-#if windows
   $ hg annotate -ncr "wdir()" baz
-  abort: $TESTTMP\repo\baz: The system cannot find the file specified
+  abort: $TESTTMP/repo/baz: $ENOENT$ (windows !)
+  abort: $ENOENT$: $TESTTMP/repo/baz (no-windows !)
   [255]
-#else
-  $ hg annotate -ncr "wdir()" baz
-  abort: $ENOENT$: $TESTTMP/repo/baz
-  [255]
-#endif
 
 annotate removed file
 
   $ hg rm baz
-#if windows
   $ hg annotate -ncr "wdir()" baz
-  abort: $TESTTMP\repo\baz: The system cannot find the file specified
+  abort: $TESTTMP/repo/baz: $ENOENT$ (windows !)
+  abort: $ENOENT$: $TESTTMP/repo/baz (no-windows !)
   [255]
-#else
-  $ hg annotate -ncr "wdir()" baz
-  abort: $ENOENT$: $TESTTMP/repo/baz
-  [255]
-#endif
 
 Test annotate with whitespace options