Show More
@@ -5,16 +5,22 b' Test hangup signal in the middle of tran' | |||
|
5 | 5 | $ mkfifo p |
|
6 | 6 | $ hg serve --stdio < p & |
|
7 | 7 | $ P=$! |
|
8 | $ (echo lock; echo addchangegroup; sleep 5) > p & | |
|
9 | $ Q=$! | |
|
10 | $ sleep 3 | |
|
8 | ||
|
9 | Do test while holding fifo open | |
|
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 | 18 | 0 |
|
12 | 19 | 0 |
|
13 | 20 | adding changesets |
|
14 | $ kill -HUP $P | |
|
15 | $ wait | |
|
16 | 21 | transaction abort! |
|
17 | 22 | rollback completed |
|
18 | 23 | killed! |
|
24 | ||
|
19 | 25 | $ echo .hg/* .hg/store/* |
|
20 | 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