Mercurial > public > mercurial-scm > hg-stable
diff tests/test-audit-path.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 | 054b0d9c3f0c |
children | 92e30e135581 |
line wrap: on
line diff
--- a/tests/test-audit-path.t Thu Sep 16 16:12:26 2010 -0500 +++ b/tests/test-audit-path.t Thu Sep 16 17:51:32 2010 -0500 @@ -4,6 +4,7 @@ $ hg add .hg/00changelog.i abort: path contains illegal component: .hg/00changelog.i + [255] $ mkdir a $ echo a > a/a @@ -16,6 +17,7 @@ $ hg add b/b abort: path 'b/b' traverses symbolic link 'b' + [255] should succeed @@ -25,6 +27,7 @@ $ hg add b/b abort: path 'b/b' traverses symbolic link 'b' + [255] unbundle tampered bundle @@ -43,6 +46,7 @@ .hg/test $ hg update -Cr0 abort: path contains illegal component: .hg/test + [255] attack foo/.hg/test @@ -50,6 +54,7 @@ foo/.hg/test $ hg update -Cr1 abort: path 'foo/.hg/test' is inside repo 'foo' + [255] attack back/test where back symlinks to .. @@ -58,6 +63,7 @@ back/test $ hg update -Cr2 abort: path 'back/test' traverses symbolic link 'back' + [255] attack ../test @@ -65,6 +71,7 @@ ../test $ hg update -Cr3 abort: path contains illegal component: ../test + [255] attack /tmp/test @@ -72,5 +79,6 @@ /tmp/test $ hg update -Cr4 abort: No such file or directory: .*/test-audit-path.t/target//tmp/test + [255] $ exit 0