Commit d5967a71 authored by Michael Matloob's avatar Michael Matloob

cmd/go: convert TestGoTestWithoutTests to the script framework

Part of converting all tests to script framework to improve
test parallelism.

Updates #36320
Updates #17751

Change-Id: Ibc3cb3823bd1c1b80058076f2c9933dc729447a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/213127
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: default avatarJay Conrod <jayconrod@google.com>
parent 562fabca
...@@ -5271,16 +5271,6 @@ func TestCDAndGOPATHAreDifferent(t *testing.T) { ...@@ -5271,16 +5271,6 @@ func TestCDAndGOPATHAreDifferent(t *testing.T) {
} }
} }
// Issue 26242.
func TestGoTestWithoutTests(t *testing.T) {
tg := testgo(t)
defer tg.cleanup()
tg.parallel()
tg.setenv("GOPATH", filepath.Join(tg.pwd(), "testdata"))
tg.run("test", "testnorun")
tg.grepStdout(`testnorun\t\[no test files\]`, "do not want test to run")
}
// Issue 25579. // Issue 25579.
func TestGoBuildDashODevNull(t *testing.T) { func TestGoBuildDashODevNull(t *testing.T) {
tooSlow(t) tooSlow(t)
......
# Tests issue #26242
go test testnorun
stdout 'testnorun\t\[no test files\]'
-- testnorun/p.go --
package p package p
func init() { func init() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment