From 5b9ef244dc36f978f990312c29463d66e655f263 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Wed, 2 Sep 2020 10:58:47 -0400 Subject: [PATCH] go/ssa: implement missing testing.testDeps SetPanicOnExit0 method A new method was added to testing.testDeps in CL 250977, which causes the implementation of that (unexported, explicitly-unstable) interface in go/ssa to no longer satisfy the interface. This is a quick, short-term fix. Longer term, the go/ssa package should switch to the supported TestMain API. Updates golang/go#41186 Change-Id: Ice110ef540e31a0a98085713346126ffeae64d5e Reviewed-on: https://go-review.googlesource.com/c/tools/+/252677 Run-TryBot: Bryan C. Mills Reviewed-by: Michael Matloob TryBot-Result: Gobot Gobot --- go/ssa/testmain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/ssa/testmain.go b/go/ssa/testmain.go index 4bf8d98f3a6..c4256d1ef8f 100644 --- a/go/ssa/testmain.go +++ b/go/ssa/testmain.go @@ -222,6 +222,7 @@ type deps struct{} func (deps) ImportPath() string { return "" } func (deps) MatchString(pat, str string) (bool, error) { return true, nil } +func (deps) SetPanicOnExit0(bool) {} func (deps) StartCPUProfile(io.Writer) error { return nil } func (deps) StartTestLog(io.Writer) {} func (deps) StopCPUProfile() {}