]> Cypherpunks repositories - gostls13.git/commit
test: lock in test for _ assignment evaluation/zerodivide panic
authorEmmanuel Odeke <emm.odeke@gmail.com>
Fri, 23 Dec 2016 11:23:10 +0000 (03:23 -0800)
committerKeith Randall <khr@golang.org>
Fri, 23 Dec 2016 17:35:24 +0000 (17:35 +0000)
commitc8f1436948ca267dc904cf04c67bab7367503107
tree50a021888cd09fbeb8339c792ba728e46a4a1f98
parentdb07c9ecb617117a86364e9e03acd6f7937e1732
test: lock in test for _ assignment evaluation/zerodivide panic

Fixes #5790.
Fixes #18421.

* Lock in _ = x1/x2 divide by zero runtime panics since
it is actually evaluated and not discarded as in previous
versions before Go1.8.
* Update a test that was skipping over zerodivide tests
that expected runtime panics, enabling us to check for
the expected panics.

Change-Id: I0af0a6ecc19345fa9763ab2e35b275fb2d9d0194
Reviewed-on: https://go-review.googlesource.com/34712
Reviewed-by: Keith Randall <khr@golang.org>
test/zerodivide.go