diff options
author | Jim Meyering <jim@meyering.net> | 2001-04-21 08:41:38 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-04-21 08:41:38 +0000 |
commit | 30b3f9a1c1157486dac7d984b68ab167c14ecbcc (patch) | |
tree | 821714aa813de2f23e76497bb9dae6b988b6d04b | |
parent | 48456d1d61d3af7d9c0bc4f58e8c947768815c22 (diff) | |
download | coreutils-30b3f9a1c1157486dac7d984b68ab167c14ecbcc.tar.xz |
tests for latest fix
-rwxr-xr-x | tests/ls-2/tests | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ls-2/tests b/tests/ls-2/tests index d611e7238..c2104ccf7 100755 --- a/tests/ls-2/tests +++ b/tests/ls-2/tests @@ -22,6 +22,11 @@ use strict; my $mkdir = {PRE => sub {mkdir 'd',0755 or die "d: $!\n"}}; my $rmdir = {POST => sub {rmdir 'd' or die "d: $!\n"}}; +my $mkdir2 = {PRE => sub {mkdir 'd',0755 or die "d: $!\n"; + mkdir 'd/e',0755 or die "d/e: $!\n" }}; +my $rmdir2 = {POST => sub {rmdir 'd/e' or die "d/e: $!\n"; + rmdir 'd' or die "d: $!\n" }}; + my $slink_d = {PRE => sub {symlink '/', 'd' or die "d: $!\n"}}; my $unlink_d = {POST => sub {unlink 'd' or die "d: $!\n"}}; @@ -58,6 +63,14 @@ my @Tests = # FIXME: uncomment the following once ls has been fixed # ['slink-dir2', '-F d', {OUT => "d\@/\n"}, $slink_d, $unlink_d], + + # From Stéphane Chazelas. + ['no-a-isdir-b', 'no-dir d', + {OUT => "d:\n"}, + {ERR => "ls: no-dir: No such file or directory\n"}, + $mkdir, $rmdir, {EXIT => 1}], + + ['recursive-2', '-R d', {OUT => "d:\ne\n\nd/e:\n"}, $mkdir2, $rmdir2], ); my $save_temps = $ENV{SAVE_TEMPS}; |