From: Jim Meyering Date: Wed, 4 Apr 2012 12:29:44 +0000 (+0200) Subject: tests: correct reversed args to "compare" X-Git-Tag: v8.17~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89779e84970841708596223d6c85a7b58cb65878;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/misc/sort-discrim b/tests/misc/sort-discrim index 14ae6cc866..fced20495d 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