]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Do each test twice: get input via REDIR and PIPE.
authorJim Meyering <jim@meyering.net>
Thu, 30 Jan 1997 03:38:47 +0000 (03:38 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 30 Jan 1997 03:38:47 +0000 (03:38 +0000)
tests/tr/Test.pm

index ad39c4ad7462cb13db86b2a7dd04330e7c474a64..7dc5c02036b468030df246d6758b15fd2d21a9fa 100755 (executable)
@@ -81,9 +81,6 @@ my @tv = (
 ['rep-3',   q|'a[b*513]c' '1[x*]2'|,   'abc', '1x2', 0],
 ['esc',     q|'a\-z' 'A-Z'|,           'abc-z', 'AbcBC', 0],
 
-
-
-
 #
 # From Ross
 ['ross-0a', '-cs ' . q|'[:upper:]' 'X[Y*]'|,   '', '', 1],
@@ -100,6 +97,13 @@ my @tv = (
 
 sub test_vector
 {
+  my $t;
+  foreach $t (@tv)
+    {
+      my ($test_name, $flags, $in, $exp, $ret) = @$t;
+      $Test::input_via{$test_name} = {REDIR => 0, PIPE => 0};
+    }
+
   return @tv;
 }