Skip this test if "trap '' CHLD" doesn't work.

This commit is contained in:
Paul Eggert committed 2005-04-18 06:35:22 +00:00
1 parent 2cb82c08c6
commit 1563f3241e
1 file changed
+6
+6
View File
@@ -7,6 +7,12 @@ if test "$VERBOSE" = yes; then
ginstall --version
fi
(trap '' CHLD) || {
echo >&2 "$0: the shell command \"trap '' CHLD\" does not work," \
"so can't run this test"
exit 77
}
pwd=`pwd`
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0