Commit e19cdc65 authored by Andrew Gerrand's avatar Andrew Gerrand

testing: allow examples to pass (fix build)

R=golang-dev
CC=golang-dev
https://golang.org/cl/7132050
parent c0229434
......@@ -67,6 +67,7 @@ func runExample(eg InternalExample) (ok bool) {
}()
start := time.Now()
ok = true
// Clean up in a deferred call so we can recover if the example panics.
defer func() {
......@@ -84,6 +85,7 @@ func runExample(eg InternalExample) (ok bool) {
}
if fail != "" || err != nil {
fmt.Printf("--- FAIL: %s (%v)\n%s", eg.Name, d, fail)
ok = false
} else if *chatty {
fmt.Printf("--- PASS: %s (%v)\n", eg.Name, d)
}
......
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