summaryrefslogtreecommitdiff
path: root/xdelta3/go/src/xdelta/tgroup.go
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/go/src/xdelta/tgroup.go')
-rw-r--r--xdelta3/go/src/xdelta/tgroup.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/xdelta3/go/src/xdelta/tgroup.go b/xdelta3/go/src/xdelta/tgroup.go
index b1b04ec..602b1e1 100644
--- a/xdelta3/go/src/xdelta/tgroup.go
+++ b/xdelta3/go/src/xdelta/tgroup.go
@@ -58,7 +58,9 @@ func (g *Goroutine) OK() {
58 58
59func (g *Goroutine) Panic(err error) { 59func (g *Goroutine) Panic(err error) {
60 g.finish(err) 60 g.finish(err)
61 runtime.Goexit() 61 if g != g.TestGroup.main {
62 runtime.Goexit()
63 }
62} 64}
63 65
64func (t *TestGroup) Main() *Goroutine { return t.main } 66func (t *TestGroup) Main() *Goroutine { return t.main }