]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go, testing, os: fail test that calls os.Exit(0)
authorIan Lance Taylor <iant@golang.org>
Thu, 27 Aug 2020 00:26:05 +0000 (17:26 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 27 Aug 2020 23:19:15 +0000 (23:19 +0000)
commit4f76fe86756841befb6574ce4bf04113d14389d4
tree7c99448c043961b189d1c05a7b63d4b411b8acf3
parentcdc635547fc436dc49c91ddb172b0e101febd3d7
cmd/go, testing, os: fail test that calls os.Exit(0)

This catches cases where a test calls code that calls os.Exit(0),
thereby skipping all subsequent tests.

Fixes #29062

Change-Id: If9478972f40189e27623557e7141469ca4234d89
Reviewed-on: https://go-review.googlesource.com/c/go/+/250977
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
doc/go1.16.html
src/cmd/go/internal/test/flagdefs_test.go
src/cmd/go/internal/test/genflags.go
src/cmd/go/internal/test/test.go
src/cmd/go/testdata/script/test_exit.txt [new file with mode: 0644]
src/internal/testlog/exit.go [new file with mode: 0644]
src/os/proc.go
src/testing/internal/testdeps/deps.go
src/testing/testing.go