summaryrefslogtreecommitdiff
path: root/tests/tsort
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-04-24 13:36:03 +0000
committerJim Meyering <jim@meyering.net>2003-04-24 13:36:03 +0000
commiteafe3a687805445bc76bc6a9cca0ac99d6ef1e67 (patch)
tree85665a0eef693eff537c0bfda3eadd6619c95a1b /tests/tsort
parent4c91ec1e022efb492ac7f2bf91e0400a196af503 (diff)
downloadcoreutils-eafe3a687805445bc76bc6a9cca0ac99d6ef1e67.tar.xz
(only-one): add another test
Diffstat (limited to 'tests/tsort')
-rwxr-xr-xtests/tsort/basic-15
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tsort/basic-1 b/tests/tsort/basic-1
index 68340f07e..0db65b9f2 100755
--- a/tests/tsort/basic-1
+++ b/tests/tsort/basic-1
@@ -48,6 +48,11 @@ my @Tests =
['odd', {IN => "a\n"},
{EXIT => 1},
{ERR => "tsort: odd.1: input contains an odd number of tokens\n"}],
+
+ ['only-one', {IN => {f => ""}}, {IN => {g => ""}},
+ {EXIT => 1},
+ {ERR => "tsort: only one argument may be specified\n"
+ . "Try `tsort --help' for more information.\n"}],
);
my $save_temps = $ENV{DEBUG};