##// END OF EJS Templates
tests: remove sleep/startup/shutdown races from test-hup
Matt Mackall -
r16299:853ffcaf stable
parent child Browse files
Show More
@@ -5,16 +5,22 b' Test hangup signal in the middle of tran'
5 $ mkfifo p
5 $ mkfifo p
6 $ hg serve --stdio < p &
6 $ hg serve --stdio < p &
7 $ P=$!
7 $ P=$!
8 $ (echo lock; echo addchangegroup; sleep 5) > p &
8
9 $ Q=$!
9 Do test while holding fifo open
10 $ sleep 3
10
11 $ (
12 > echo lock
13 > echo addchangegroup
14 > while [ ! -e .hg/store/00changelog.i.a ]; do true; done
15 > kill -HUP $P
16 > while kill -0 $P 2>/dev/null; do true; done
17 > ) > p
11 0
18 0
12 0
19 0
13 adding changesets
20 adding changesets
14 $ kill -HUP $P
15 $ wait
16 transaction abort!
21 transaction abort!
17 rollback completed
22 rollback completed
18 killed!
23 killed!
24
19 $ echo .hg/* .hg/store/*
25 $ echo .hg/* .hg/store/*
20 .hg/00changelog.i .hg/journal.bookmarks .hg/journal.branch .hg/journal.desc .hg/journal.dirstate .hg/requires .hg/store .hg/store/00changelog.i .hg/store/00changelog.i.a .hg/store/journal.phaseroots
26 .hg/00changelog.i .hg/journal.bookmarks .hg/journal.branch .hg/journal.desc .hg/journal.dirstate .hg/requires .hg/store .hg/store/00changelog.i .hg/store/00changelog.i.a .hg/store/journal.phaseroots
General Comments 0
You need to be logged in to leave comments. Login now