mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: set procid on Windows
The runtime-gdb.py script needs procid to be set in order to map a goroutine ID with an OS thread. The Go runtime is not currently setting that variable on Windows, so TestGdbPython (and friends) can't succeed. This CL initializes procid and unskips gdb tests on Windows. Fixes #22687 Updates #21380 Updates #22021 Change-Id: Icd1d9fc1764669ed1bf04f53d17fadfd24ac3f30 Reviewed-on: https://go-review.googlesource.com/c/go/+/470596 Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
This commit is contained in:
parent
b611b3a8cc
commit
140000dd55
2 changed files with 3 additions and 2 deletions
|
|
@ -34,8 +34,6 @@ func checkGdbEnvironment(t *testing.T) {
|
|||
t.Skip("gdb does not work on darwin")
|
||||
case "netbsd":
|
||||
t.Skip("gdb does not work with threads on NetBSD; see https://golang.org/issue/22893 and https://gnats.netbsd.org/52548")
|
||||
case "windows":
|
||||
t.Skip("gdb tests fail on Windows: https://golang.org/issue/22687")
|
||||
case "linux":
|
||||
if runtime.GOARCH == "ppc64" {
|
||||
t.Skip("skipping gdb tests on linux/ppc64; see https://golang.org/issue/17366")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue