1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 10:16:53 +02:00

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

This commit is contained in:
Paul Eggert
2005-04-18 06:35:22 +00:00
parent 2cb82c08c6
commit 1563f3241e
+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