summaryrefslogtreecommitdiff
path: root/tests/ls-2
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-04-24 09:20:52 +0200
committerJim Meyering <jim@meyering.net>2007-04-24 09:20:52 +0200
commit383713e03057588985a397b184b733dbf552baf2 (patch)
tree8760839ec13a70895930717ac5e8888fbbd2100f /tests/ls-2
parent1d85945321f9118010740785f433d0be18bcbf1a (diff)
downloadcoreutils-383713e03057588985a397b184b733dbf552baf2.tar.xz
* THANKS: Add Andreas Frische.
* NEWS: Mention today's ls --color fix. * tests/ls-2/tests (sl-dangle): Add a test for today's fix.
Diffstat (limited to 'tests/ls-2')
-rwxr-xr-xtests/ls-2/tests13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ls-2/tests b/tests/ls-2/tests
index 3f2fc1df7..9bf40577d 100755
--- a/tests/ls-2/tests
+++ b/tests/ls-2/tests
@@ -130,6 +130,19 @@ my @Tests =
['sl-target', '--color=always d',
{OUT => "\e[0m\e[01;34mX\e[0m\n\e[m"}, $target, $target2],
+ # Test for another bug fixed in coreutils-6.10.
+ # This one bites only for a system/file system with d_type support.
+ ['sl-dangle', '--color=always d',
+ {OUT => "\e[0m\e[40;31;01mX\e[0m\n\e[m"},
+ {PRE => sub {
+ mkdir 'd',0755 or die "d: $!\n";
+ symlink 'non-existent', 'd/X' or die "d/X: $!\n";
+ $ENV{LS_COLORS}='or=40;31;01'
+ }},
+ {POST => sub {unlink 'd/X' or die "d/X: $!\n";
+ rmdir 'd' or die "d: $!\n" }},
+ ],
+
# Test for a bug that was introduced in coreutils-4.5.4; fixed in 4.5.5.
# To demonstrate it, the file in question (with executable bit set)
# must not be a command line argument.