diff options
author | Jim Meyering <jim@meyering.net> | 2006-08-26 18:44:52 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-08-26 18:44:52 +0000 |
commit | e9bf9a6ecc7418e0b9d254121d5cdf28644e0189 (patch) | |
tree | 4ec0f3e11f9c29e704e735d0220095424810eade /tests | |
parent | 2ace7e1eee80b99c63e034e1ab1fe950eec74dbd (diff) | |
download | coreutils-e9bf9a6ecc7418e0b9d254121d5cdf28644e0189.tar.xz |
This test was failing in some environments.
* tests/ls/color-dtype-dir: Don't rely on eval "`dircolors -b`"
to set LS_COLORS in the environment.
* tests/envvar-check: Instead, ensure that LS_COLORS is not set.
Reported by Bob Proulx.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/envvar-check | 1 | ||||
-rwxr-xr-x | tests/ls/color-dtype-dir | 11 |
2 files changed, 5 insertions, 7 deletions
diff --git a/tests/envvar-check b/tests/envvar-check index 357a6176a..51c522214 100644 --- a/tests/envvar-check +++ b/tests/envvar-check @@ -33,6 +33,7 @@ vars=' DF_BLOCK_SIZE DU_BLOCK_SIZE LS_BLOCK_SIZE + LS_COLORS POSIXLY_CORRECT SIMPLE_BACKUP_SUFFIX TIME_STYLE diff --git a/tests/ls/color-dtype-dir b/tests/ls/color-dtype-dir index 2cd691170..a7169f7c1 100755 --- a/tests/ls/color-dtype-dir +++ b/tests/ls/color-dtype-dir @@ -48,19 +48,16 @@ fi fail=0 -# Ensure that LS_COLORS is set to known values. -eval "`dircolors -b`" - ls --color=always > out || fail=1 cat -A out > o1 || fail=1 echo >> o1 || fail=1 mv o1 out || fail=1 cat <<\EOF > exp || fail=1 -^[[00m^[[01;34md^[[00m$ -^[[34;42mother-writable^[[00m$ -^[[00mout^[[00m$ -^[[37;44msticky^[[00m$ +^[[0m^[[01;34md^[[0m$ +^[[34;42mother-writable^[[0m$ +^[[0mout^[[0m$ +^[[37;44msticky^[[0m$ ^[[m EOF |