Mercurial > hg
comparison tests/test-paths.t @ 16843:61f3ca8e4d39
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 .
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sun, 03 Jun 2012 19:35:45 +0200 |
parents | 8b84d040d9f9 |
children | f2719b387380 |
comparison
equal
deleted
inserted
replaced
16842:a3ea092203a5 | 16843:61f3ca8e4d39 |
---|---|
1 $ "$TESTDIR/hghave" no-msys || exit 80 # MSYS will translate /foo/bar as if it was a real file path | |
2 | |
3 $ hg init a | 1 $ hg init a |
4 $ hg clone a b | 2 $ hg clone a b |
5 updating to branch default | 3 updating to branch default |
6 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 4 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
7 $ cd a | 5 $ cd a |
22 dupe = $TESTTMP/b (glob) | 20 dupe = $TESTTMP/b (glob) |
23 expand = $TESTTMP/a/$SOMETHING/bar (glob) | 21 expand = $TESTTMP/a/$SOMETHING/bar (glob) |
24 $ SOMETHING=foo hg paths | 22 $ SOMETHING=foo hg paths |
25 dupe = $TESTTMP/b (glob) | 23 dupe = $TESTTMP/b (glob) |
26 expand = $TESTTMP/a/foo/bar (glob) | 24 expand = $TESTTMP/a/foo/bar (glob) |
25 #if msys | |
26 $ SOMETHING=//foo hg paths | |
27 dupe = $TESTTMP/b (glob) | |
28 expand = /foo/bar | |
29 #else | |
27 $ SOMETHING=/foo hg paths | 30 $ SOMETHING=/foo hg paths |
28 dupe = $TESTTMP/b (glob) | 31 dupe = $TESTTMP/b (glob) |
29 expand = /foo/bar | 32 expand = /foo/bar |
33 #endif | |
30 $ hg paths -q | 34 $ hg paths -q |
31 dupe | 35 dupe |
32 expand | 36 expand |
33 $ hg paths dupe | 37 $ hg paths dupe |
34 $TESTTMP/b (glob) | 38 $TESTTMP/b (glob) |