diff options
Diffstat (limited to 'libgo/go/testing/run_example_js.go')
-rw-r--r-- | libgo/go/testing/run_example_js.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libgo/go/testing/run_example_js.go b/libgo/go/testing/run_example_js.go index 472e0c5..1d4164b 100644 --- a/libgo/go/testing/run_example_js.go +++ b/libgo/go/testing/run_example_js.go @@ -26,6 +26,7 @@ func runExample(eg InternalExample) (ok bool) { stdout := os.Stdout f := createTempFile(eg.Name) os.Stdout = f + finished := false start := time.Now() // Clean up in a deferred call so we can recover if the example panics. @@ -50,11 +51,12 @@ func runExample(eg InternalExample) (ok bool) { } err := recover() - ok = eg.processRunResult(out, timeSpent, err) + ok = eg.processRunResult(out, timeSpent, finished, err) }() // Run example. eg.F() + finished = true return } |