go/ssa: go/ssa: disable TestTypeparamTest on wasm

watchflakes reported additional test cases for TestTypeparamTest on
wasm. Skipping the test when on wasm.

Fixes golang/go#69410
Fixes golang/go#69409

Change-Id: Icfe5da007bf7411e9875313bc1b190751f1c1a15
Reviewed-on: https://go-review.googlesource.com/c/tools/+/612855
Commit-Queue: Tim King <taking@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Tim King <taking@google.com>
This commit is contained in:
Tim King 2024-09-12 12:40:51 -07:00 коммит произвёл Gopher Robot
Родитель 3e49191340
Коммит 198986d2dd
2 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -777,6 +777,13 @@ func TestTypeparamTest(t *testing.T) {
// Tests use a fake goroot to stub out standard libraries with declarations in
// testdata/src. Decreases runtime from ~80s to ~1s.
if runtime.GOARCH == "wasm" {
// Consistent flakes on wasm (#64726, #69409, #69410).
// Needs more investigation, but more likely a wasm issue
// Disabling for now.
t.Skip("Consistent flakes on wasm (e.g. https://go.dev/issues/64726)")
}
dir := filepath.Join(build.Default.GOROOT, "test", "typeparam")
// Collect all of the .go files in
@ -786,9 +793,6 @@ func TestTypeparamTest(t *testing.T) {
}
for _, entry := range list {
if entry.Name() == "chans.go" && runtime.GOARCH == "wasm" {
continue // https://go.dev/issues/64726 runtime: found bad pointer
}
if entry.IsDir() || !strings.HasSuffix(entry.Name(), ".go") {
continue // Consider standalone go files.
}

Просмотреть файл

@ -307,6 +307,11 @@ func TestGorootTest(t *testing.T) {
// in $GOROOT/test/typeparam/*.go.
func TestTypeparamTest(t *testing.T) {
if runtime.GOARCH == "wasm" {
// See ssa/TestTypeparamTest.
t.Skip("Consistent flakes on wasm (e.g. https://go.dev/issues/64726)")
}
goroot := makeGoroot(t)
// Skip known failures for the given reason.