diff options
author | Ryan Leung <rleungx@gmail.com> | 2021-11-22 02:41:07 +0000 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2021-11-22 22:35:55 +0000 |
commit | 11972353a67456d776cf891a9e46873e8a1fe630 (patch) | |
tree | 1a2a8ed1e90e442f65008d99281bef8cbffdb4e9 /src/cmd/go | |
parent | 100d7ea50dbe601164f428f5e4203be7727093f9 (diff) | |
download | go-11972353a67456d776cf891a9e46873e8a1fe630.tar.gz go-11972353a67456d776cf891a9e46873e8a1fe630.zip |
cmd/go: allow a package that ends with _test having an internal test package
Fixes #45477
Change-Id: I2f1ed281515ec40d31fd07ce9f4901777691bfa7
GitHub-Last-Rev: 7894d9400c95b8d84efe88f401fa75c3dd01921a
GitHub-Pull-Request: golang/go#49673
Reviewed-on: https://go-review.googlesource.com/c/go/+/365534
Trust: Heschi Kreinick <heschi@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/cmd/go')
-rw-r--r-- | src/cmd/go/testdata/script/test_issue45477.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/test_issue45477.txt b/src/cmd/go/testdata/script/test_issue45477.txt new file mode 100644 index 0000000000..f435b6a6f4 --- /dev/null +++ b/src/cmd/go/testdata/script/test_issue45477.txt @@ -0,0 +1,12 @@ +[short] skip # links and runs a test binary + +go test -v . + +-- go.mod -- +module example.com/pkg_test + +-- pkg.go -- +package pkg_test + +-- pkg_test.go -- +package pkg_test |