]> Cypherpunks repositories - gostls13.git/commit
cmd/go: avoid crashing on 'go test -n'
authorThan McIntosh <thanm@google.com>
Thu, 9 Nov 2017 20:41:45 +0000 (15:41 -0500)
committerThan McIntosh <thanm@google.com>
Thu, 9 Nov 2017 21:55:42 +0000 (21:55 +0000)
commit95322a3ac68b206c3394329cb00a0d511e77e0f9
tree150081ceffeee3028f28d67ba6f0802267da68d4
parent2f53fb58a8664c96a770bfb8c8d1b0596fbae481
cmd/go: avoid crashing on 'go test -n'

Fix a buglet in the go command support for 'go test -n': check for
nil output buffer in action routine.

Fixes #22644

Change-Id: I2566e3bb3d53d0324c4ddd6fec5d30224bf290df
Reviewed-on: https://go-review.googlesource.com/76710
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/test/test.go