Patchwork D1156: tests: add test demonstrating regression in path audit

login
register
mail settings
Submitter phabricator
Date Oct. 17, 2017, 9:21 p.m.
Message ID <6eaaef36d924ebbfa7b988ec74b757a9@localhost.localdomain>
Download mbox | patch
Permalink /patch/25142/
State Not Applicable
Headers show

Comments

phabricator - Oct. 17, 2017, 9:21 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd6009d1488e8: tests: add test demonstrating regression in path audit (authored by mbthomas, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1156?vs=2929&id=2945

REVISION DETAIL
  https://phab.mercurial-scm.org/D1156

AFFECTED FILES
  tests/test-audit-path.t

CHANGE DETAILS




To: mbthomas, #hg-reviewers, ryanmce
Cc: mercurial-devel

Patch

diff --git a/tests/test-audit-path.t b/tests/test-audit-path.t
--- a/tests/test-audit-path.t
+++ b/tests/test-audit-path.t
@@ -119,9 +119,14 @@ 
 
   $ hg manifest -r3
   ../test
+  $ mkdir ../test
+  $ echo data > ../test/file
   $ hg update -Cr3
   abort: path contains illegal component: ../test (glob)
   [255]
+  $ cat ../test/file
+  cat: ../test/file: No such file or directory
+  [1]
 
 attack /tmp/test