]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Update uses of undocumented, for- testing-only --presume* options
authorJim Meyering <jim@meyering.net>
Sat, 3 Dec 2005 22:16:24 +0000 (22:16 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 3 Dec 2005 22:16:24 +0000 (22:16 +0000)
to start with `---'.

tests/misc/head-elide-tail
tests/rm/dangling-symlink
tests/rm/dir-no-w
tests/rm/isatty

index 9731305a27430be07ae035445d06e65aeb43f21e..b7a49a2cbe75409753b129b89b828284d7b4465d 100755 (executable)
@@ -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;
          }
       }
index 1b1968a8593409dc027731c3cdf80e7a9c12f83d..1072776cb5b0ff53495741aecc7ffe9020fa8d10 100755 (executable)
@@ -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.
 
index b0c6a668f514d5ba0ed875a8c90b50de8bcc30d4..39e508e5e9eafb5f3922000e04185d19d790cea4 100755 (executable)
@@ -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
index 8916e6ac155bf8962c1e283e80c6369d233d37c8..6985860ebeb4a316380921d67a3855f54fee1294 100755 (executable)
@@ -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)