make test-mq-qdelete work reliably (issue1180)
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Wed, 10 Sep 2008 17:55:49 +0200
changeset 7020 5e9965407d53
parent 7019 6b1ece890f9a
child 7021 75ce89ed3b6e
make test-mq-qdelete work reliably (issue1180) if after a and b has been applied, their hash starts with c, then the test would fail (because there would be a rev c which would be seen as "applied") so probability of failure would be 2*1/16.
tests/test-mq-qdelete
--- a/tests/test-mq-qdelete	Fri Aug 29 20:36:55 2008 +0100
+++ b/tests/test-mq-qdelete	Wed Sep 10 17:55:49 2008 +0200
@@ -9,9 +9,9 @@
 echo 'base' > base
 hg ci -Ambase -d '1 0'
 
-hg qnew a
-hg qnew b
-hg qnew c
+hg qnew -d '1 0' a
+hg qnew -d '1 0' b
+hg qnew -d '1 0' c
 
 hg qdel
 
@@ -41,14 +41,14 @@
 cd b
 
 echo 'base' > base
-hg ci -Ambase
+hg ci -Ambase -d '1 0'
 
 hg qfinish
 hg qfinish -a
 
-hg qnew a
-hg qnew b
-hg qnew c
+hg qnew -d '1 0' a
+hg qnew -d '1 0' b
+hg qnew c # XXX fails to apply by /usr/bin/patch if we put a date
 
 hg qfinish 0
 hg qfinish b