]> Cypherpunks repositories - gostls13.git/commitdiff
go/internal/gcimporter: cleanup test code pre Unified IR
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 24 Jul 2024 08:22:09 +0000 (15:22 +0700)
committerGopher Robot <gobot@golang.org>
Fri, 26 Jul 2024 16:16:28 +0000 (16:16 +0000)
Same as CL 543315 did for cmd/compile.

Change-Id: I56a200664c92fe34d4b78c2dbf6ed56288e89e0e
Reviewed-on: https://go-review.googlesource.com/c/go/+/600675
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/go/internal/gcimporter/gcimporter_test.go

index 07ab13518681cea6a9d6fb5039bc1bdcdfe46827..fad8625d98fe63acb8cb6ca463757cdfeae9acc5 100644 (file)
@@ -99,12 +99,7 @@ func TestImportTestdata(t *testing.T) {
                "exports.go":  {"go/ast", "go/token"},
                "generics.go": nil,
        }
-       if true /* was goexperiment.Unified */ {
-               // TODO(mdempsky): Fix test below to flatten the transitive
-               // Package.Imports graph. Unified IR is more precise about
-               // recreating the package import graph.
-               testfiles["exports.go"] = []string{"go/ast"}
-       }
+       testfiles["exports.go"] = []string{"go/ast"}
 
        for testfile, wantImports := range testfiles {
                tmpdir := mktmpdir(t)