blob: affab6b806968171da4f741e315bf925781a8dd3 [file] [log] [blame]
# Tests that go test -bench prints out goos, goarch, and pkg.
# Check for goos, goarch, and pkg.
go test -run ^$ -bench . bench
stdout '^goos: '$GOOS
stdout '^goarch: '$GOARCH
stdout '^pkg: bench'
# Check go test does not print pkg multiple times
! stdout 'pkg:.*pkg: '
! stderr 'pkg:.*pkg:'
-- bench/x_test.go --
package bench
import "testing"
func Benchmark(b *testing.B) {
}