diff mbox

Go testsuite patch committed: Skip nilptr.go if PIE

Message ID CAOyqgcV8PzjHiYWOWznL+dySx=CSWRcAX_V6mOVK0wEPR3CCVw@mail.gmail.com
State New
Headers show

Commit Message

Ian Lance Taylor Nov. 21, 2015, 1:47 a.m. UTC
This patch to the Go testsuite skips the nilptr.go test when the
default is to produce PIE.  This should fix GCC PR 66406.  Ran Go
testsuite on x86_64-pc-linux-gnu.  Committed to mainline.

Ian

2015-11-20  Ian Lance Taylor  <iant@google.com>

PR go/66406
* go.test/go-test.exp (go-gc-tests): Skip nilptr.go if PIE.
diff mbox

Patch

Index: go.test/go-test.exp
===================================================================
--- go.test/go-test.exp	(revision 229630)
+++ go.test/go-test.exp	(working copy)
@@ -398,6 +398,11 @@  proc go-gc-tests { } {
 	    }
 	}
 
+	if [check_effective_target_pie_enabled] {
+	    untested $test
+	    continue
+	}
+
 	if { [file tail $test] == "init1.go" } {
 	    # This tests whether GC runs during init, which for gccgo
 	    # it currently does not.