go/ssa/interp: skip recover2 testcase

The test case (taken from the go distribution itself) seems to be broken
when run against tip. Disable it when run against tip.

Updates golang/go#34089

Change-Id: I47d2e12ca39bc060fe0a0c967e95b900bdd0d725
Reviewed-on: https://go-review.googlesource.com/c/tools/+/193377
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Michael Matloob 2019-09-04 16:52:49 -04:00
parent a4fdb3a8b2
commit 958971f5c2
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import (
"log"
"os"
"path/filepath"
"runtime"
"strings"
"testing"
"time"
@ -124,6 +125,12 @@ var testdataTests = []string{
}
func run(t *testing.T, input string) bool {
// The recover2 test case is broken when run against tip. See golang/go#34089.
// TODO(matloob): Figure out what's going on or fix this before go1.14 is released.
if filepath.Base(input) == "recover2.go" && strings.HasPrefix(runtime.Version(), "devel") {
t.Skip("The recover2.go test is broken in tip. See golang.org/issue/34089.")
}
t.Logf("Input: %s\n", input)
start := time.Now()