]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Undo previous change.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Apr 2005 00:30:35 +0000 (00:30 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Apr 2005 00:30:35 +0000 (00:30 +0000)
(sig): New var.  Use it insted of "trap '' CHLD".
Append $EXEEXT to executable name.

tests/install/trap

index 514b2be4955889b598fef07e5f19501d627fee64..e95eb8f1c2443862a9262a2526a7bfdc4ae53cce 100755 (executable)
@@ -7,12 +7,6 @@ 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
@@ -29,8 +23,10 @@ fi
 
 fail=0
 
+# ash doesn't support "trap '' CHLD"; it knows only signal numbers.
+sig=`$pwd/../../src/kill -l CHLD 2>/dev/null` && trap '' $sig
+
 # Before 2004-04-21, install would infloop, in the `while (wait...' loop:
-trap '' CHLD
-ginstall -s $pwd/../../src/ginstall .
+ginstall -s $pwd/../../src/ginstall$EXEEXT .
 
 (exit $fail); exit $fail