go/ssa/interp: exclude another long-running test if -short is set
For #11811. Change-Id: Ic3bf3c035ce402f144b5b6670d5ef062874b167e Reviewed-on: https://go-review.googlesource.com/13260 Reviewed-by: Chris Manghane <cmang@golang.org>
This commit is contained in:
parent
7e0ad01d16
commit
874e71548b
|
@ -307,7 +307,7 @@ func TestTestdataFiles(t *testing.T) {
|
||||||
// TestGorootTest runs the interpreter on $GOROOT/test/*.go.
|
// TestGorootTest runs the interpreter on $GOROOT/test/*.go.
|
||||||
func TestGorootTest(t *testing.T) {
|
func TestGorootTest(t *testing.T) {
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
return // too slow (~30s)
|
t.Skip() // too slow (~30s)
|
||||||
}
|
}
|
||||||
|
|
||||||
var failures []string
|
var failures []string
|
||||||
|
@ -327,6 +327,10 @@ func TestGorootTest(t *testing.T) {
|
||||||
|
|
||||||
// TestTestmainPackage runs the interpreter on a synthetic "testmain" package.
|
// TestTestmainPackage runs the interpreter on a synthetic "testmain" package.
|
||||||
func TestTestmainPackage(t *testing.T) {
|
func TestTestmainPackage(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip() // too slow on some platforms
|
||||||
|
}
|
||||||
|
|
||||||
success := func(exitcode int, output string) error {
|
success := func(exitcode int, output string) error {
|
||||||
if exitcode == 0 {
|
if exitcode == 0 {
|
||||||
return fmt.Errorf("unexpected success")
|
return fmt.Errorf("unexpected success")
|
||||||
|
|
Loading…
Reference in New Issue