summaryrefslogtreecommitdiff
path: root/tests/rm/isatty
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-04 09:03:02 +0000
committerJim Meyering <jim@meyering.net>2003-01-04 09:03:02 +0000
commit874f367c0a5c0d75dbfa43685d0dadcb3075dce8 (patch)
tree0f784a39bdf109162d444ce3607ae8427505ede7 /tests/rm/isatty
parent432a5017a2db3b71bd007b277617499cf35b3ba1 (diff)
downloadcoreutils-874f367c0a5c0d75dbfa43685d0dadcb3075dce8.tar.xz
Enable this test -- now that we have the --presume-input-tty option.
Diffstat (limited to 'tests/rm/isatty')
-rwxr-xr-xtests/rm/isatty11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/rm/isatty b/tests/rm/isatty
index 98df1f87c..cf161336c 100755
--- a/tests/rm/isatty
+++ b/tests/rm/isatty
@@ -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
#`