]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Skip this test if "trap '' CHLD" doesn't work.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 Apr 2005 06:35:22 +0000 (06:35 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 Apr 2005 06:35:22 +0000 (06:35 +0000)
tests/install/trap

index a43c55229df6e4acfcfac69d73efe73f8c5fec0d..514b2be4955889b598fef07e5f19501d627fee64 100755 (executable)
@@ -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