summaryrefslogtreecommitdiff
path: root/tests/misc/sort-debug-keys
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2010-05-12 14:47:30 +0100
committerPádraig Brady <P@draigBrady.com>2010-05-12 14:53:45 +0100
commit144d6e5f53b59cec504b1194b4f420144896f9ae (patch)
tree01a966fc03b55106f30c833c9510d49a6e4bb163 /tests/misc/sort-debug-keys
parent4f5732e27a09e81351e98136309ab729a069d524 (diff)
downloadcoreutils-144d6e5f53b59cec504b1194b4f420144896f9ae.tar.xz
tests: fix sort-debug-keys when fr_FR.utf8 not available
* tests/misc/sort-debug-keys: Don't verify (or even run) the fr_FR tests when that locale is not available on the system.
Diffstat (limited to 'tests/misc/sort-debug-keys')
-rwxr-xr-xtests/misc/sort-debug-keys7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/misc/sort-debug-keys b/tests/misc/sort-debug-keys
index 043767844..0f050250e 100755
--- a/tests/misc/sort-debug-keys
+++ b/tests/misc/sort-debug-keys
@@ -300,8 +300,8 @@ _____
___________________
EOF
-(
if test "$LOCALE_FR_UTF8"; then
+ (
echo " 1²---++3 1,234 Mi" |
LC_ALL=C sort --debug -k2g -k1b,1
echo " 1²---++3 1,234 Mi" |
@@ -309,9 +309,8 @@ if test "$LOCALE_FR_UTF8"; then
echo "+1234 1234Gi 1,234M" |
LC_ALL=$LOCALE_FR_UTF8 sort --debug -k1,1n -k1,1g \
-k1,1h -k2,2n -k2,2g -k2,2h -k3,3n -k3,3g -k3,3h
+ ) > out
+ compare out exp || fail=1
fi
-) > out
-
-compare out exp || fail=1
Exit $fail