doc: don't invoke go build with -o /dev/null during test

Fixes #5998.

R=golang-dev, khr
CC=golang-dev
https://golang.org/cl/12149043
1 file changed