1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

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.
This commit is contained in:
Jim Meyering
2006-08-26 18:44:52 +00:00
parent 2ace7e1eee
commit e9bf9a6ecc
3 changed files with 11 additions and 7 deletions

View File

@@ -33,6 +33,7 @@ vars='
DF_BLOCK_SIZE
DU_BLOCK_SIZE
LS_BLOCK_SIZE
LS_COLORS
POSIXLY_CORRECT
SIMPLE_BACKUP_SUFFIX
TIME_STYLE

View File

@@ -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