From 616fc42b4fa440e8be6b855e121c5801f8f67b7a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 3 Dec 2005 22:16:24 +0000 Subject: [PATCH] Update uses of undocumented, for- testing-only --presume* options to start with `---'. --- tests/misc/head-elide-tail | 8 ++++---- tests/rm/dangling-symlink | 2 +- tests/rm/dir-no-w | 2 +- tests/rm/isatty | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/misc/head-elide-tail b/tests/misc/head-elide-tail index 9731305a27..b7a49a2cbe 100755 --- a/tests/misc/head-elide-tail +++ b/tests/misc/head-elide-tail @@ -70,9 +70,9 @@ if ($ENV{RUN_EXPENSIVE_TESTS}) {IN=>$input}, {OUT=>$output}]; push @Tests, $t; my @u = @$t; - # Insert the --presume-input-pipe option. + # Insert the ---presume-input-pipe option. $u[0] .= 'p'; - $u[1] .= ' --presume-input-pipe'; + $u[1] .= ' ---presume-input-pipe'; push @Tests, \@u; } } @@ -89,9 +89,9 @@ if ($ENV{RUN_EXPENSIVE_TESTS}) {IN=>$input}, {OUT=>$output}]; push @Tests, $t; my @u = @$t; - # Insert the --presume-input-pipe option. + # Insert the ---presume-input-pipe option. $u[0] .= 'p'; - $u[1] .= ' --presume-input-pipe'; + $u[1] .= ' ---presume-input-pipe'; push @Tests, \@u; } } diff --git a/tests/rm/dangling-symlink b/tests/rm/dangling-symlink index 1b1968a859..1072776cb5 100755 --- a/tests/rm/dangling-symlink +++ b/tests/rm/dangling-symlink @@ -27,7 +27,7 @@ fi fail=0 -rm --presume-input-tty dangle symlink & +rm ---presume-input-tty dangle symlink & pid=$! # The buggy rm (fileutils-4.1.9) would hang here, waiting for input. diff --git a/tests/rm/dir-no-w b/tests/rm/dir-no-w index b0c6a668f5..39e508e5e9 100755 --- a/tests/rm/dir-no-w +++ b/tests/rm/dir-no-w @@ -28,7 +28,7 @@ fi fail=0 # For rm from coreutils-5.0.1, this would prompt. -rm --presume-input-tty unwritable-dir < /dev/null > out-t 2>&1 && fail=1 +rm ---presume-input-tty unwritable-dir < /dev/null > out-t 2>&1 && fail=1 cat <<\EOF > exp || fail=1 rm: cannot remove `unwritable-dir': Is a directory EOF diff --git a/tests/rm/isatty b/tests/rm/isatty index 8916e6ac15..6985860ebe 100755 --- a/tests/rm/isatty +++ b/tests/rm/isatty @@ -31,7 +31,7 @@ ls /dev/stdin >/dev/null 2>&1 \ touch f chmod 0 f -rm --presume-input-tty f > 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) -- 2.47.3