1
0
mirror of https://github.com/golang/go synced 2024-11-23 18:30:06 -07:00

runtime: skip TestGdbPanic on Windows

TestGdbPanic expects crash() to raise a SIGABRT signal interceptable
by gdb, but Windows doesn't have signals.

Windows builders haven't caught this failing test because they still
don't have gdb installed (tracked in #22021).

Change-Id: I7c7f2523a54d61aea0a9821c4db7c79e58a7217c
Reviewed-on: https://go-review.googlesource.com/c/go/+/473116
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Quim Muntal <quimmuntal@gmail.com>
This commit is contained in:
qmuntal 2023-03-03 16:04:56 +01:00 committed by Gopher Robot
parent 14015be5bb
commit 5e74bc1a08

View File

@ -661,6 +661,10 @@ func TestGdbPanic(t *testing.T) {
t.Parallel()
checkGdbVersion(t)
if runtime.GOOS == "windows" {
t.Skip("no signals on windows")
}
dir := t.TempDir()
// Build the source code.