Expand "ls --color" tests to also use the dircolors defaults.
authorJim Meyering <meyering@redhat.com>
Sat, 16 Feb 2008 21:57:15 +0000 (22:57 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 17 Feb 2008 10:16:18 +0000 (11:16 +0100)
commitbbb82c231a255aee71a8c7f4263bb5859ab0c47a
tree5d413940d3929ac19e825bd586556bace7fb94f9
parent5b9f908ce39741654c8a1eaee5caf2d369d33816
Expand "ls --color" tests to also use the dircolors defaults.

* tests/misc/ls-misc: Adjust this test so each is run twice.  First, as usual,
and the second time with LS_COLORS set using the default settings
produced by running dircolors.
* tests/Coreutils.pm: See below.

This required some changes:
  - save and restore $ENV{LS_COLORS} for each individual test
  that requires a specific value.
  - Since this is the first test to call the run_tests command more
  than once, it has exposed that that function erroneously modifies
  the \@Tests array.  Fix that in tests/Coreutils.pm.
tests/Coreutils.pm
tests/misc/ls-misc