Mercurial > hg-stable
changeset 16846:e38ed2ceabe7
test-clone-failure: enable for Windows using #if
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 01 Jun 2012 13:38:18 +0200 |
parents | 4594729c61ee |
children | cda5402b1739 |
files | tests/test-clone-failure.t |
diffstat | 1 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-clone-failure.t Mon Jun 04 10:45:56 2012 +0400 +++ b/tests/test-clone-failure.t Fri Jun 01 13:38:18 2012 +0200 @@ -1,5 +1,3 @@ - $ "$TESTDIR/hghave" unix-permissions || exit 80 - No local source $ hg clone a b @@ -9,10 +7,13 @@ No remote source $ hg clone http://127.0.0.1:3121/a b - abort: error: Connection refused + abort: error: *refused* (glob) [255] $ rm -rf b # work around bug with http clone + +#if unix-permissions + Inaccessible source $ mkdir a @@ -32,6 +33,9 @@ $ chmod 700 a $ rm -r a b +#endif + + Source of wrong type $ if "$TESTDIR/hghave" -q fifo; then @@ -59,6 +63,9 @@ abort: destination 'a' is not empty [255] + +#if unix-permissions + leave existing directory in place after clone failure $ hg init c @@ -78,3 +85,5 @@ reenable perm to allow deletion $ chmod +rx c/.hg/store/data + +#endif