From: Paul Eggert Date: Mon, 18 Apr 2005 06:35:22 +0000 (+0000) Subject: Skip this test if "trap '' CHLD" doesn't work. X-Git-Tag: CPPI-1_12~986 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1563f3241efc8b293ae06dfbb07f107a257f60c4;p=thirdparty%2Fcoreutils.git Skip this test if "trap '' CHLD" doesn't work. --- diff --git a/tests/install/trap b/tests/install/trap index a43c55229d..514b2be495 100755 --- a/tests/install/trap +++ b/tests/install/trap @@ -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