This test is failing on the nocgo builder.
Change-Id: I9426ce77907956e4654fd437ad20e3af664e83ab
Reviewed-on: https://go-review.googlesource.com/c/go/+/497436
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
"fmt"
"internal/testenv"
"regexp"
- "runtime"
"sort"
"strings"
"testing"
}
func TestIssue59944(t *testing.T) {
- if runtime.GOARCH == "wasm" {
- // While we don't use the cgo tool directly in this test, we must have the
- // syscall package.
- t.Skip("cgo generated code does not compile on wasm")
- }
+ testenv.MustHaveCGO(t)
+
// The typechecker should resolve methods declared on aliases of cgo types.
const src = `
package p
"go/token"
"internal/testenv"
"regexp"
- "runtime"
"sort"
"strings"
"testing"
}
func TestIssue59944(t *testing.T) {
- if runtime.GOARCH == "wasm" {
- // While we don't use the cgo tool directly in this test, we must have the
- // syscall package.
- t.Skip("cgo generated code does not compile on wasm")
- }
+ testenv.MustHaveCGO(t)
+
// The typechecker should resolve methods declared on aliases of cgo types.
const src = `
package p