aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-03-26 19:29:27 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-03-26 19:29:27 +0000
commita8ebf991f368de92ec22a431920cc7c4332be5d4 (patch)
tree727977904bf70aeef0bd8a6a6d4efb9ee1676e8e /libgo
parent2903ad2d599eeba2c32fd2b07b6d697950c84c6e (diff)
downloadgcc-a8ebf991f368de92ec22a431920cc7c4332be5d4.zip
gcc-a8ebf991f368de92ec22a431920cc7c4332be5d4.tar.gz
gcc-a8ebf991f368de92ec22a431920cc7c4332be5d4.tar.bz2
runtime: don't check for stale runtime
The gccgo runtime is never stale, and on a system with gc sources in ~/go the test may wind up checking whether the gc runtime is stale. Reviewed-on: https://go-review.googlesource.com/102282 From-SVN: r258865
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/runtime/crash_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/runtime/crash_test.go b/libgo/go/runtime/crash_test.go
index 7a099be..602630d 100644
--- a/libgo/go/runtime/crash_test.go
+++ b/libgo/go/runtime/crash_test.go
@@ -150,6 +150,9 @@ var (
func checkStaleRuntime(t *testing.T) {
staleRuntimeOnce.Do(func() {
+ if runtime.Compiler == "gccgo" {
+ return
+ }
// 'go run' uses the installed copy of runtime.a, which may be out of date.
out, err := testenv.CleanCmdEnv(exec.Command(testenv.GoToolPath(t), "list", "-gcflags=all="+os.Getenv("GO_GCFLAGS"), "-f", "{{.Stale}}", "runtime")).CombinedOutput()
if err != nil {