diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-03-26 19:29:27 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-03-26 19:29:27 +0000 |
commit | 1f57c252d0aa648f54db5d9a9f4dc3e5198675d0 (patch) | |
tree | 727977904bf70aeef0bd8a6a6d4efb9ee1676e8e /libgo | |
parent | 7cc9d7b65b997229376693375bb924cc2f5bdc12 (diff) |
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
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258865 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/runtime/crash_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/runtime/crash_test.go b/libgo/go/runtime/crash_test.go index 7a099beb765..602630d955f 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 { |