]>
Commit | Line | Data |
---|---|---|
71aad674 A |
1 | # $FreeBSD$ |
2 | ||
3 | failures= | |
4 | failure() { | |
5 | echo "Error at line $1" >&2 | |
6 | failures=x$failures | |
7 | } | |
8 | ||
9 | exit 4 & p4=$! | |
10 | exit 8 & p8=$! | |
11 | wait $p4 | |
12 | [ $? = 4 ] || failure $LINENO | |
13 | wait $p8 | |
14 | [ $? = 8 ] || failure $LINENO | |
15 | ||
16 | exit 3 & p3=$! | |
17 | exit 7 & p7=$! | |
18 | wait $p7 | |
19 | [ $? = 7 ] || failure $LINENO | |
20 | wait $p3 | |
21 | [ $? = 3 ] || failure $LINENO | |
22 | ||
23 | test -z "$failures" |