]> Cypherpunks repositories - gostls13.git/commit
os: give race detector chance to override Exit(0)
authorDmitry Vyukov <dvyukov@google.com>
Tue, 10 Feb 2015 14:26:26 +0000 (17:26 +0300)
committerDmitry Vyukov <dvyukov@google.com>
Sat, 28 Mar 2015 12:42:37 +0000 (12:42 +0000)
commitc61d86af72e2323c32ba2c12528866ecc2264bb3
treeccde6edc622205b2ea3c5fbdc92dbd492c836610
parent7b2b45e544140aa51d335b09f11b4baf84e3be18
os: give race detector chance to override Exit(0)

Racy tests do not fail currently, they do os.Exit(0).
So if you run go test without -v, you won't even notice.
This was probably introduced with testing.TestMain.

Racy programs do not have the right to finish successfully.

Change-Id: Id133d7424f03d90d438bc3478528683dd02b8846
Reviewed-on: https://go-review.googlesource.com/4371
Reviewed-by: Russ Cox <rsc@golang.org>
src/os/proc.go
src/runtime/proc.go
src/runtime/race/output_test.go