diff --git a/src/runtime/crash_cgo_test.go b/src/runtime/crash_cgo_test.go index 34e33169d5..c5d7303261 100644 --- a/src/runtime/crash_cgo_test.go +++ b/src/runtime/crash_cgo_test.go @@ -597,6 +597,9 @@ func TestWindowsStackMemoryCgo(t *testing.T) { if runtime.GOOS != "windows" { t.Skip("skipping windows specific test") } + if race.Enabled { + t.Skip("skipping test: race mode uses more stack memory") + } testenv.SkipFlaky(t, 22575) o := runTestProg(t, "testprogcgo", "StackMemory") stackUsage, err := strconv.Atoi(o) diff --git a/src/runtime/syscall_windows_test.go b/src/runtime/syscall_windows_test.go index 6709267403..ad9bfb464b 100644 --- a/src/runtime/syscall_windows_test.go +++ b/src/runtime/syscall_windows_test.go @@ -7,6 +7,7 @@ package runtime_test import ( "fmt" "internal/abi" + "internal/race" "internal/syscall/windows/sysdll" "internal/testenv" "io" @@ -668,6 +669,9 @@ func TestWERDialogue(t *testing.T) { } func TestWindowsStackMemory(t *testing.T) { + if race.Enabled { + t.Skip("skipping test: race mode uses more stack memory") + } o := runTestProg(t, "testprog", "StackMemory") stackUsage, err := strconv.Atoi(o) if err != nil {