test: make sure sparse-revlog does not interfer with test-parseindex.t
authorBoris Feld <boris.feld@octobus.net>
Mon, 12 Nov 2018 01:13:01 +0100
changeset 53653 75728718257e3278e6f753322e98d56c52b2b06e
parent 53652 8aa7879adacfccc22702773354e213d422f6b3b8
child 53654 2c55fd1c14686e27cdaae6f2d146e670fe84d5e7
push id1079
push usergszorc@mozilla.com
push dateMon, 10 Dec 2018 19:44:59 +0000
test: make sure sparse-revlog does not interfer with test-parseindex.t That test carefully craft revlog to reproduce issues. We do not want new revlog behavior to interfere with that. Differential Revision: https://phab.mercurial-scm.org/D5314
tests/test-parseindex.t
--- a/tests/test-parseindex.t
+++ b/tests/test-parseindex.t
@@ -127,19 +127,19 @@ Test SEGV caused by bad revision passed 
 
   $ cd ..
 
 Test corrupted p1/p2 fields that could cause SEGV at parsers.c:
 
   $ mkdir invalidparent
   $ cd invalidparent
 
-  $ hg clone --pull -q --config phases.publish=False ../a limit
-  $ hg clone --pull -q --config phases.publish=False ../a neglimit
-  $ hg clone --pull -q --config phases.publish=False ../a segv
+  $ hg clone --pull -q --config phases.publish=False ../a limit --config format.sparse-revlog=no
+  $ hg clone --pull -q --config phases.publish=False ../a neglimit --config format.sparse-revlog=no
+  $ hg clone --pull -q --config phases.publish=False ../a segv --config format.sparse-revlog=no
   $ rm -R limit/.hg/cache neglimit/.hg/cache segv/.hg/cache
 
   $ "$PYTHON" <<EOF
   > data = open("limit/.hg/store/00changelog.i", "rb").read()
   > poisons = [
   >     (b'limit', b'\0\0\0\x02'),
   >     (b'neglimit', b'\xff\xff\xff\xfe'),
   >     (b'segv', b'\0\x01\0\0'),