From 7de4da029c452cd88975fc1708d511b42fc2c039 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 11 Sep 2014 13:31:05 -0400 Subject: [PATCH] go/ssa/interp: exclude "runtime" from the list of initial packages in the test It now has a main() function, which was confusing the logic to find the entry point. LGTM=gri R=gri CC=golang-codereviews https://golang.org/cl/142860044 --- go/ssa/interp/interp_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/ssa/interp/interp_test.go b/go/ssa/interp/interp_test.go index 4324b08f..a7329602 100644 --- a/go/ssa/interp/interp_test.go +++ b/go/ssa/interp/interp_test.go @@ -222,6 +222,9 @@ func run(t *testing.T, dir, input string, success successPredicate) bool { var mainPkg *ssa.Package var initialPkgs []*ssa.Package for _, info := range iprog.InitialPackages() { + if info.Pkg.Path() == "runtime" { + continue // not an initial package + } p := prog.Package(info.Pkg) initialPkgs = append(initialPkgs, p) if mainPkg == nil && p.Func("main") != nil {