mirror of
https://github.com/golang/go
synced 2024-11-11 20:20:23 -07:00
test: exit non-zero on error from nilptr2.go.
(For go.tools/ssa/interp/interp_test, which runs a subset of these tests under this assumption.) R=rsc, r CC=golang-dev https://golang.org/cl/13108043
This commit is contained in:
parent
ca2d32b46d
commit
d96de0633c
@ -6,6 +6,8 @@
|
||||
|
||||
package main
|
||||
|
||||
import "os"
|
||||
|
||||
func main() {
|
||||
ok := true
|
||||
for _, tt := range tests {
|
||||
@ -21,6 +23,7 @@ func main() {
|
||||
}
|
||||
if !ok {
|
||||
println("BUG")
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user