##// END OF EJS Templates
tests: avoid test-hup hanging on AIX...
Jim Hague -
r16364:f64b25f1 stable
parent child Browse files
Show More
@@ -94,6 +94,8 b' utestpats = ['
94 "explicit exit code checks unnecessary"),
94 "explicit exit code checks unnecessary"),
95 (uprefix + r'set -e', "don't use set -e"),
95 (uprefix + r'set -e', "don't use set -e"),
96 (uprefixc + r'( *)\t', "don't use tabs to indent"),
96 (uprefixc + r'( *)\t', "don't use tabs to indent"),
97 (uprefixc + r'.*do\s*true;\s*done',
98 "don't use true as loop body, use sleep 0"),
97 ],
99 ],
98 # warnings
100 # warnings
99 []
101 []
@@ -11,7 +11,7 b' Do test while holding fifo open'
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
@@ -14,7 +14,7 b''
14 > else
14 > else
15 > kill `cat hg.pid`
15 > kill `cat hg.pid`
16 > fi
16 > fi
17 > while kill -0 `cat hg.pid` 2>/dev/null; do true; done
17 > while kill -0 `cat hg.pid` 2>/dev/null; do sleep 0; done
18 > }
18 > }
19
19
20 $ hg init test
20 $ hg init test
General Comments 0
You need to be logged in to leave comments. Login now