--- a/tests/test-convert.t Tue Jun 19 00:20:38 2012 +0200
+++ b/tests/test-convert.t Tue Jun 19 01:43:41 2012 +0200
@@ -1,5 +1,3 @@
- $ "$TESTDIR/hghave" unix-permissions || exit 80
-
$ cat >> $HGRCPATH <<EOF
> [extensions]
> convert=
@@ -293,24 +291,27 @@
pulling from ../a
searching for changes
no changes found
- $ touch bogusfile
-should fail
+conversion to existing file should fail
+ $ touch bogusfile
$ hg convert a bogusfile
initializing destination bogusfile repository
abort: cannot create new bundle repository
[255]
+
+#if unix-permissions
+
+conversion to dir without permissions should fail
+
$ mkdir bogusdir
$ chmod 000 bogusdir
-should fail
-
$ hg convert a bogusdir
abort: Permission denied: bogusdir
[255]
-should succeed
+user permissions should succeed
$ chmod 700 bogusdir
$ hg convert a bogusdir
@@ -324,6 +325,8 @@
1 d
0 e
+#endif
+
test pre and post conversion actions
$ echo 'include b' > filemap