summaryrefslogtreecommitdiff
path: root/tests/install/trap
diff options
context:
space:
mode:
Diffstat (limited to 'tests/install/trap')
-rwxr-xr-xtests/install/trap6
1 files changed, 6 insertions, 0 deletions
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