Skip to content

Commit d270a67

Browse files
committed
runtime: disable gdb test when a GOROOT_FINAL move is pending
Fixes #13577. Change-Id: I0bb8157d6210b0c7c09380c2163b7d7349495732 Reviewed-on: https://go-review.googlesource.com/17970 Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent cfc9fde commit d270a67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/runtime/runtime-gdb_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ func TestGdbPython(t *testing.T) {
6060
if runtime.GOOS == "darwin" {
6161
t.Skip("gdb does not work on darwin")
6262
}
63+
if final := os.Getenv("GOROOT_FINAL"); final != "" && runtime.GOROOT() != final {
64+
t.Skip("gdb test can fail with GOROOT_FINAL pending")
65+
}
6366

6467
checkGdbPython(t)
6568

0 commit comments

Comments
 (0)