sapling/tests/test-hup
Thomas Arendsen Hein 28782db5b2 Exit test-hup only after the background process has died.
Otherwise the open file might let the tests fail on NFS.
2006-04-19 07:09:15 +02:00

17 lines
146 B
Bash
Executable File

#!/bin/sh
hg init
mkfifo p
hg serve --stdio < p &
P=$!
(echo lock; echo addchangegroup; sleep 5) > p &
Q=$!
sleep 1
kill -HUP $P
wait
ls .hg