diff options
author | Bryan C. Mills <bcmills@google.com> | 2019-07-18 17:34:59 -0400 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2019-07-22 21:42:51 +0000 |
commit | 5e21032b3d179a8bc0d9e70e4725629defad9d8b (patch) | |
tree | f10f5f4845b799a02397feda3d8a78a247d69e14 /src/cmd/go/internal/test/test.go | |
parent | f518a96e009157c51f8ecf619032bbb7873228f9 (diff) | |
download | go-5e21032b3d179a8bc0d9e70e4725629defad9d8b.tar.gz go-5e21032b3d179a8bc0d9e70e4725629defad9d8b.zip |
Revert "cmd/go: move automatic testing.Init call into generated test code"
This reverts CL 176098.
Reason for revert: added complexity, but did not completely fix the
underlying problem. A complete solution would not be worth the
complexity, and as a partial solution this is probably not worth the
complexity either.
Updates #31859
Change-Id: Ifd34c292fd1b811c60afe3c339e5edd3f37190c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/186817
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Caleb Spare <cespare@gmail.com>
Diffstat (limited to 'src/cmd/go/internal/test/test.go')
-rw-r--r-- | src/cmd/go/internal/test/test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/internal/test/test.go b/src/cmd/go/internal/test/test.go index cc7c4564e5..95000011d8 100644 --- a/src/cmd/go/internal/test/test.go +++ b/src/cmd/go/internal/test/test.go @@ -843,7 +843,7 @@ func builderTest(b *work.Builder, p *load.Package) (buildAction, runAction, prin if !cfg.BuildN { // writeTestmain writes _testmain.go, // using the test description gathered in t. - if err := ioutil.WriteFile(testDir+"_testmain.go", pmain.Internal.TestmainGo, 0666); err != nil { + if err := ioutil.WriteFile(testDir+"_testmain.go", *pmain.Internal.TestmainGo, 0666); err != nil { return nil, nil, nil, err } } |