summaryrefslogtreecommitdiff
path: root/tests/cp/same-file
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-06-11 08:12:37 +0000
committerJim Meyering <jim@meyering.net>2006-06-11 08:12:37 +0000
commitba2948b76496486bac9d0681145dbd912af80b6e (patch)
treefe60852dc0fb6dba2ff3e18f90077fcff5962593 /tests/cp/same-file
parent13d0cd669e1f1ecc19d4087fed2ec5dea23d94a2 (diff)
downloadcoreutils-ba2948b76496486bac9d0681145dbd912af80b6e.tar.xz
Setting TIME_STYLE=long-iso in the environment would make the
cp/same-file test fail. * tests/envvar-check (vars): Add TIME_STYLE to the list. * tests/cp/same-file: Revert last change. Source the envvar-check script, to ensure that TIME_STYLE settings don't affect these tests.
Diffstat (limited to 'tests/cp/same-file')
-rwxr-xr-xtests/cp/same-file3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cp/same-file b/tests/cp/same-file
index 2cba869b3..a08c4e3f3 100755
--- a/tests/cp/same-file
+++ b/tests/cp/same-file
@@ -8,6 +8,7 @@ if test "$VERBOSE" = yes; then
fi
. $srcdir/../lang-default
+. $srcdir/../envvar-check
# Unset CDPATH. Otherwise, output from the `cd dir' command
# can make this test fail.
@@ -74,7 +75,7 @@ for args in 'foo symlink' 'symlink foo' 'foo foo' 'sl1 sl2' 'foo hardlink'; do
# and put brackets around the output.
test -s _err && echo "[`sed 's/^[^:][^:]*:/cp:/' _err`]"
# Strip off all but the file names.
- ls="`LC_ALL=C ls -gG --ignore=_err . \
+ ls="`ls -gG --ignore=_err . \
| sed \
-e '/^total /d' \
-e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'`"