tests: correct reversed args to "compare"
authorJim Meyering <meyering@redhat.com>
Wed, 4 Apr 2012 12:29:44 +0000 (14:29 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 4 Apr 2012 12:30:18 +0000 (14:30 +0200)
* 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.

tests/misc/sort-discrim

index 14ae6cc..fced204 100755 (executable)
@@ -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