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

Fixes Issue 5998.

R=golang-dev, khr
CC=golang-dev
https://codereview.appspot.com/12149043

Committer: Rob Pike <r@golang.org>