libgo patch committed: Run tests in source file order

Submitted by Ian Taylor on July 13, 2011, 1:04 a.m.


Message ID
State New
Headers show

Commit Message

Ian Taylor July 13, 2011, 1:04 a.m.
The libgo tests expect to be run in the order in which they appear in
the source file.  This patch uses -fno-toplevel-reorder to make sure
that happens.  Bootstrapped and ran libgo tests on
x86_64-unknown-linux-gnu.  Committed to mainline.


Patch hide | download patch | download mbox

diff -r 8020981d5461 libgo/testsuite/gotest
--- a/libgo/testsuite/gotest	Mon Jul 11 13:25:57 2011 -0700
+++ b/libgo/testsuite/gotest	Tue Jul 12 17:56:52 2011 -0700
@@ -288,11 +288,11 @@ 
-$GC -g $prefixarg -c -I . -o _gotest_.o $gofiles $pkgbasefiles
+$GC -g $prefixarg -c -I . -fno-toplevel-reorder -o _gotest_.o $gofiles $pkgbasefiles
 if $havex; then
 	mkdir -p `dirname $package`
 	cp _gotest_.o `dirname $package`/lib`basename $package`.a
-	$GC -g -c -I . -o $xofile $xgofiles
+	$GC -g -c -I . -fno-toplevel-reorder -o $xofile $xgofiles
 # They all compile; now generate the code to call them.