components/erlang/patches/test-ordering.patch
author Girish Moodalbail <Girish.Moodalbail@oracle.COM>
Wed, 01 Jul 2015 10:21:52 -0700
changeset 4582 cfdc60640ff6
parent 4164 78ce887dcfd6
permissions -rw-r--r--
21356776 evs-neutron migration script should exit gracefully if there is nothing to do

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