Mercurial > public > mercurial-scm > hg
diff tests/test-walk.t @ 12316:4134686b83e1
tests: add exit codes to unified tests
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 16 Sep 2010 17:51:32 -0500 |
parents | 4c94b6d0fb1c |
children | 5163e3c8aa52 |
line wrap: on
line diff
--- a/tests/test-walk.t Thu Sep 16 16:12:26 2010 -0500 +++ b/tests/test-walk.t Thu Sep 16 17:51:32 2010 -0500 @@ -160,8 +160,10 @@ f mammals/skunk skunk $ hg debugwalk .hg abort: path 'mammals/.hg' is inside repo 'mammals' + [255] $ hg debugwalk ../.hg abort: path contains illegal component: .hg + [255] $ cd .. $ hg debugwalk -Ibeans @@ -187,16 +189,22 @@ f mammals/skunk mammals/skunk $ hg debugwalk .. abort: .. not under root + [255] $ hg debugwalk beans/../.. abort: beans/../.. not under root + [255] $ hg debugwalk .hg abort: path contains illegal component: .hg + [255] $ hg debugwalk beans/../.hg abort: path contains illegal component: .hg + [255] $ hg debugwalk beans/../.hg/data abort: path contains illegal component: .hg/data + [255] $ hg debugwalk beans/.hg abort: path 'beans/.hg' is inside repo 'beans' + [255] Test absolute paths: @@ -209,6 +217,7 @@ f beans/turtle beans/turtle $ hg debugwalk `pwd`/.. abort: .*/.. not under root + [255] Test patterns: