From 874f367c0a5c0d75dbfa43685d0dadcb3075dce8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 4 Jan 2003 09:03:02 +0000 Subject: Enable this test -- now that we have the --presume-input-tty option. --- tests/rm/isatty | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'tests') 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 #` -- cgit v1.2.3-70-g09d2