]> Cypherpunks.ru repositories - gostls13.git/commit
test: compile source files as if from "test" module
authorMatthew Dempsky <mdempsky@google.com>
Wed, 23 Mar 2022 21:24:26 +0000 (14:24 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 24 Mar 2022 17:50:47 +0000 (17:50 +0000)
commitb95d332c7e876eb8de8e0df84894c934a3f5cbde
tree50b84aa698320b9d2c8eb119e4c75191a09e5908
parentb2643c673970676065e4683bbbaa087db694bbc9
test: compile source files as if from "test" module

This CL updates test/run.go to compile xxx.dir/x.go with a package
path of "test/x" instead of just "x". This prevents collisions with
standard library packages.

It also requires updating a handful of tests to account for the
updated package paths.

Fixes #25693.

Change-Id: I49208c56ab3cb229ed667d547cd6e004d2175fcf
Reviewed-on: https://go-review.googlesource.com/c/go/+/395258
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
test/fixedbugs/bug345.go
test/fixedbugs/issue19467.dir/z.go
test/fixedbugs/issue29919.dir/a.go
test/fixedbugs/issue42401.dir/b.go
test/fixedbugs/issue5957.dir/c.go
test/linkname.dir/linkname2.go
test/run.go