summaryrefslogtreecommitdiff
path: root/tests/sort/Test.pm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-07-26 02:55:53 +0000
committerJim Meyering <jim@meyering.net>1998-07-26 02:55:53 +0000
commitcafbd3477a99b6684b340d79d107ca9fbb553654 (patch)
treeb37662247f7a1b8250af0194d394ca6b431e748c /tests/sort/Test.pm
parent165718775f4be73fa3d6e29c9fdfe66cd461bcfe (diff)
downloadcoreutils-cafbd3477a99b6684b340d79d107ca9fbb553654.tar.xz
Add two tests. `sort -o no-file no-file' didn't fail.
Diffstat (limited to 'tests/sort/Test.pm')
-rwxr-xr-xtests/sort/Test.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/sort/Test.pm b/tests/sort/Test.pm
index be3332f92..71c881313 100755
--- a/tests/sort/Test.pm
+++ b/tests/sort/Test.pm
@@ -198,6 +198,11 @@ my @tv = (
["22a", '-k 2,2fd -k 1,1r', "3 b\n4 B\n", "4 B\n3 b\n", 0],
["22b", '-k 2,2d -k 1,1r', "3 b\n4 b\n", "4 b\n3 b\n", 0],
+["no-file1", 'no-file', {}, '', 2],
+# This test failed until 1.22f. Sort didn't give an error.
+# From Will Edgington.
+["o-no-file1", '-o no-such-file no-such-file', {}, '', 2],
+
);
sub test_vector