components/erlang/patches/test-ordering.patch
author Rich Burridge <rich.burridge@oracle.com>
Thu, 07 May 2015 09:03:04 -0700
branchs11-update
changeset 4258 e6c70ecb57e7
permissions -rw-r--r--
20785395 problem in UTILITY/ERLANG 20823713 We should update erlang to version 17.5

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