comparison tests/test-hup.t @ 16364:f64b25f147d7 stable

tests: avoid test-hup hanging on AIX test-hup hangs on AIX. Under ksh89 on AIX (the default shell), echo Hello; while [ ! -s not-there ]; do true; done produces no output while the loop executes. Replacing 'true' with 'sleep 0' fixes, as does using a less broken shell. ksh93 is fine. Update check-code.py to look for this, and make same change in test-serve.t. In fact test-serve works fine, probably because of additional commands between echo and the loop, but that's a subtlety not easy to test for.
author Jim Hague <jim.hague@acm.org>
date Thu, 05 Apr 2012 12:31:21 +0100
parents fb765286f2f9
children 9fae01831dea
comparison
equal deleted inserted replaced
16362:16b75661828e 16364:f64b25f147d7
9 Do test while holding fifo open 9 Do test while holding fifo open
10 10
11 $ ( 11 $ (
12 > echo lock 12 > echo lock
13 > echo addchangegroup 13 > echo addchangegroup
14 > while [ ! -s .hg/store/journal ]; do true; done 14 > while [ ! -s .hg/store/journal ]; do sleep 0; done
15 > kill -HUP $P 15 > kill -HUP $P
16 > ) > p 16 > ) > p
17 17
18 $ wait 18 $ wait
19 $ cat out 19 $ cat out