]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
tests: sort preselections to make test failures easier to read
authorEric Blake <eblake@redhat.com>
Fri, 21 Sep 2012 21:27:58 +0000 (15:27 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 21 Sep 2012 21:36:49 +0000 (15:36 -0600)
Prompted by Stefano Lattarini's report of a test failure due to
a missing preselection for automake 1.12.

* tests/tools.at (autom4te preselections): Sort before diffing.

tests/tools.at

index 5a9ee63ccdc125380620d26ac2fe1a625660de66..4ffe3da9996774b9fe01d42e683bd27254f8849f 100644 (file)
@@ -1190,7 +1190,7 @@ AT_CHECK([autoconf])
 
 # If this test fails due to missing entries in lib/autom4te.in, then
 # comparing the old and new requests is a good place to start debugging:
-cp autom4te.cache/requests old-requests
+sort autom4te.cache/requests >old-requests
 echo newer >newer
 $sleep # if `configure' is regenerated, we want it to be strictly newer,
        # to catch the error consistently.
@@ -1198,7 +1198,7 @@ AT_CHECK([aclocal], [], [], [ignore])
 AT_CHECK([automake --no-force --add-missing], [], [], [ignore])
 AT_CHECK([autoconf])
 AT_CHECK([test "`find configure -newer newer`" = "" ||
-         { diff old-requests autom4te.cache/requests; exit 1; }],
+         { sort autom4te.cache/requests | diff old-requests -; exit 1; }],
         [], [], [],
         [extract_version=['s/^[^0-9]*\([0-9][^ ]*\).*/\1/;q']
          automake_version=`automake --version | sed "$extract_version"`