Patchwork libgo patch committed: Run tests in source file order

login
register
mail settings
Submitter Ian Taylor
Date July 13, 2011, 1:04 a.m.
Message ID <mcr8vs3j8i2.fsf@coign.corp.google.com>
Download mbox | patch
Permalink /patch/104460/
State New
Headers show

Comments

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.

Ian

Patch

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 @@ 
 	prefixarg="-fgo-prefix=$prefix"
 fi
 
-$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
 fi
 
 # They all compile; now generate the code to call them.