components/erlang/patches/test-ordering.patch
changeset 3660 46ba63335db4
child 4164 78ce887dcfd6
equal deleted inserted replaced
3659:2110c4baed8f 3660:46ba63335db4
       
     1 Fix erlang tests so that they are always done in the same order and
       
     2 therefore generate test results that we can successfully compare
       
     3 against a master test results file.
       
     4 
       
     5 GNU make v3.82 introduced a change that caused this failure:
       
     6 
       
     7   https://lists.gnu.org/archive/html/info-gnu/2010-07/msg00023.html
       
     8 
       
     9   * WARNING: Future backward-incompatibility!
       
    10     Wildcards are not documented as returning sorted values, but up to and
       
    11     including this release the results have been sorted and some makefiles are
       
    12     apparently depending on that.  In the next release of GNU make, for
       
    13     performance reasons, we may remove that sorting.  If your makefiles
       
    14     require sorted results from wildcard expansions, use the $(sort ...)
       
    15     function to request it explicitly.
       
    16 
       
    17 This change will be passed upstream.
       
    18 
       
    19 --- otp_src_R15B03/Makefile.in.orig	2015-01-16 15:19:04.246591613 -0800
       
    20 +++ otp_src_R15B03/Makefile.in	2015-01-16 15:19:31.043380791 -0800
       
    21 @@ -893,7 +893,7 @@
       
    22  
       
    23  TEST_DIRS := \
       
    24  	lib/test_server \
       
    25 -	$(wildcard lib/*/test) \
       
    26 +	$(sort $(wildcard lib/*/test)) \
       
    27  	erts/test \
       
    28  	erts/epmd/test \
       
    29  	erts/emulator/test