}
func TestIssue43124(t *testing.T) {
+ testenv.MustHaveGoBuild(t)
+
// All involved packages have the same name (template). Error messages should
// disambiguate between text/template and html/template by printing the full
// path.
import (
"cmd/compile/internal/syntax"
+ "internal/testenv"
"path"
"path/filepath"
"runtime"
)
func TestSelf(t *testing.T) {
+ testenv.MustHaveGoBuild(t) // The Go command is needed for the importer to determine the locations of stdlib .a files.
+
files, err := pkgFiles(".")
if err != nil {
t.Fatal(err)
}
func BenchmarkCheck(b *testing.B) {
+ testenv.MustHaveGoBuild(b) // The Go command is needed for the importer to determine the locations of stdlib .a files.
+
for _, p := range []string{
filepath.Join("src", "net", "http"),
filepath.Join("src", "go", "parser"),
import (
"cmd/compile/internal/syntax"
"cmd/compile/internal/types2"
+ "internal/testenv"
"testing"
)
// Issue #53884.
func TestAtomicAlign(t *testing.T) {
+ testenv.MustHaveGoBuild(t) // The Go command is needed for the importer to determine the locations of stdlib .a files.
+
const src = `
package main