From 1563f3241efc8b293ae06dfbb07f107a257f60c4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 18 Apr 2005 06:35:22 +0000 Subject: Skip this test if "trap '' CHLD" doesn't work. --- tests/install/trap | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/install/trap b/tests/install/trap index a43c55229..514b2be49 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 -- cgit v1.2.3-54-g00ecf