]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Enable this test -- now that we have the --presume-input-tty option.
authorJim Meyering <jim@meyering.net>
Sat, 4 Jan 2003 09:03:02 +0000 (09:03 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 4 Jan 2003 09:03:02 +0000 (09:03 +0000)
tests/rm/isatty

index 98df1f87cc432ac13a48f26595f0ae633351143c..cf161336ce3f3a65bfce22a0a24b683eae99680d 100755 (executable)
@@ -28,14 +28,9 @@ fail=0
 ls /dev/stdin >/dev/null 2>&1 \
   || { (exit 77); exit; }
 
-# FIXME: skip this test, for now.
-# FIXME: reenable it once I find a way to test whether rm's read (below)
-# would cause the test to hang (i.e., when run in the background).
-(exit 77); exit
-
 touch f
 chmod 0 f
-rm f < /dev/stdin > out 2>&1 &
+rm --presume-input-tty f > out 2>&1 &
 pid=$!
 
 # Wait a second, to give a buggy rm (as in fileutils-4.0.40)
@@ -45,12 +40,12 @@ sleep 1
 # The file must still exist.
 test -f f || fail=1
 
-kill $pid
+kill $pid > /dev/null 2>&1
 
 # Note the trailing `x' -- so I don't have to have a trailing
 # blank in this file :-)
 cat > exp <<\EOF
-rm: remove write-protected file `f'? x
+rm: remove write-protected regular empty file `f'? x
 EOF
 #`