# HG changeset patch # User Adrian Buehlmann # Date 1338744945 -7200 # Node ID 61f3ca8e4d39fd401b358856ad132419d827c5e2 # Parent a3ea092203a5f575ee4b316f62af36cf3ee8c48b test-paths.t: enable for Windows using #if If the no-msys exit at the beginning is removed, the test fails on Windows with MSYS with: --- C:\Users\adi\hgrepos\hg-main\tests\test-paths.t +++ C:\Users\adi\hgrepos\hg-main\tests\test-paths.t.err @@ -24,7 +24,7 @@ expand = $TESTTMP/a/foo/bar (glob) $ SOMETHING=/foo hg paths dupe = $TESTTMP/b (glob) - expand = /foo/bar + expand = c:/MinGW/msys/1.0/foo/bar $ hg paths -q dupe expand caused by http://www.mingw.org/wiki/Posix_path_conversion . diff -r a3ea092203a5 -r 61f3ca8e4d39 tests/test-paths.t --- a/tests/test-paths.t Fri Jun 01 02:25:12 2012 +0200 +++ b/tests/test-paths.t Sun Jun 03 19:35:45 2012 +0200 @@ -1,5 +1,3 @@ - $ "$TESTDIR/hghave" no-msys || exit 80 # MSYS will translate /foo/bar as if it was a real file path - $ hg init a $ hg clone a b updating to branch default @@ -24,9 +22,15 @@ $ SOMETHING=foo hg paths dupe = $TESTTMP/b (glob) expand = $TESTTMP/a/foo/bar (glob) +#if msys + $ SOMETHING=//foo hg paths + dupe = $TESTTMP/b (glob) + expand = /foo/bar +#else $ SOMETHING=/foo hg paths dupe = $TESTTMP/b (glob) expand = /foo/bar +#endif $ hg paths -q dupe expand