test-audit-path: add one more test (issue 1450)
authorPeter Arrenbrecht <peter.arrenbrecht@gmail.com>
Sun, 04 Jan 2009 08:06:05 +0100
changeset 7586 e9d3a11eacad
parent 7585 075b7ef0f84d
child 7587 766d9cf58b3f
test-audit-path: add one more test (issue 1450)
tests/tampered.hg
tests/test-audit-path
tests/test-audit-path.out
Binary file tests/tampered.hg has changed
--- a/tests/test-audit-path	Sun Jan 04 02:36:48 2009 +0100
+++ b/tests/test-audit-path	Sun Jan 04 08:06:05 2009 +0100
@@ -41,4 +41,8 @@
 hg manifest -r3
 hg update -Cr3
 
+echo % attack /tmp/test
+hg manifest -r4
+hg update -Cr4 2>&1 | sed -e "s|$HGTMP|[HGTMP]|"
+
 exit 0
--- a/tests/test-audit-path.out	Sun Jan 04 02:36:48 2009 +0100
+++ b/tests/test-audit-path.out	Sun Jan 04 08:06:05 2009 +0100
@@ -10,7 +10,7 @@
 adding changesets
 adding manifests
 adding file changes
-added 4 changesets with 5 changes to 5 files (+3 heads)
+added 5 changesets with 6 changes to 6 files (+4 heads)
 (run 'hg heads' to see heads, 'hg merge' to merge)
 % attack .hg/test
 .hg/test
@@ -25,3 +25,6 @@
 % attack ../test
 ../test
 abort: path contains illegal component: ../test
+% attack /tmp/test
+/tmp/test
+abort: No such file or directory: [HGTMP]/test-audit-path/target//tmp/test