components/erlang/patches/test-ordering.patch
author pkidd <patrick.kidd@oracle.com>
Wed, 13 Jul 2016 09:31:29 -0700
branchs11u3-sru
changeset 6406 42eff29ff9ca
parent 4258 e6c70ecb57e7
permissions -rw-r--r--
Added tag 0.175.3.11.0.2.0, S11.3SRU11.2 for changeset f0f0d240d640

Fix erlang tests so that they are always done in the same order and
therefore generate test results that we can successfully compare
against a master test results file.

GNU make v3.82 introduced a change that caused this failure:

  https://lists.gnu.org/archive/html/info-gnu/2010-07/msg00023.html

  * WARNING: Future backward-incompatibility!
    Wildcards are not documented as returning sorted values, but up to and
    including this release the results have been sorted and some makefiles are
    apparently depending on that.  In the next release of GNU make, for
    performance reasons, we may remove that sorting.  If your makefiles
    require sorted results from wildcard expansions, use the $(sort ...)
    function to request it explicitly.
 
This change will be passed upstream.

--- otp_src_17.5/Makefile.in.orig	2015-04-01 17:11:52.717727683 -0700
+++ otp_src_17.5/Makefile.in	2015-04-01 17:12:23.417905229 -0700
@@ -987,7 +987,7 @@
 
 TEST_DIRS := \
 	lib/test_server \
-	$(wildcard lib/*/test) \
+	$(sort $(wildcard lib/*/test)) \
 	erts/test \
 	erts/epmd/test \
 	erts/emulator/test