summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-04-04 14:29:44 +0200
committerJim Meyering <meyering@redhat.com>2012-04-04 14:30:18 +0200
commit89779e84970841708596223d6c85a7b58cb65878 (patch)
treed19b9e8668b96a6fb6692e4437b18cc8081efef8 /tests
parente82602833d5c79f07198b61f2f42240b3edf2ba0 (diff)
downloadcoreutils-89779e84970841708596223d6c85a7b58cb65878.tar.xz
tests: correct reversed args to "compare"
* tests/misc/sort-discrim: Correct reversed args to "compare". This nit was masked by a bug in maint.mk that effectively disabled many of the syntax-check rules.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/sort-discrim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc/sort-discrim b/tests/misc/sort-discrim
index 14ae6cc86..fced20495 100755
--- a/tests/misc/sort-discrim
+++ b/tests/misc/sort-discrim
@@ -33,7 +33,7 @@ getlimits_
long_prefix='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
seq -f "$long_prefix%5.0f" 10000 > exp || fail=1
sort -R exp | LC_ALL=C sort > out || fail=1
-compare out exp || fail=1
+compare exp out || fail=1
# Test numeric sorting.
@@ -83,7 +83,7 @@ max_frac160=$(expr $INTMAX_MAX / 16 % 10) &&
for opts in -n -h; do
sort -R exp | LC_ALL=C sort $opts > out || fail=1
- compare out exp || fail=1
+ compare exp out || fail=1
done
Exit $fail