]> Cypherpunks repositories - gostls13.git/commit
cmd/go: show FAIL for errors during test setup
authorRuss Cox <rsc@golang.org>
Tue, 10 Sep 2013 18:43:57 +0000 (14:43 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 10 Sep 2013 18:43:57 +0000 (14:43 -0400)
commitbaed067d879410951279feeebc0ef67702415ffd
treee651840a815f5ae60910d0dfce0fbc5ddb8beca2
parent627d17cf2980c97b76badf7893cfc2c4b1289738
cmd/go: show FAIL for errors during test setup

For example, if an x_test.go file contains a syntax error,
b.test fails with an error message. But it wasn't printing
the same FAIL line that a build failure later would print.
This makes all the test failures that happen (once we
decide to start running tests) consistently say FAIL.

Fixes #4701.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13431044
src/cmd/go/test.bash
src/cmd/go/test.go
src/cmd/go/testdata/src/syntaxerror/x.go [new file with mode: 0644]
src/cmd/go/testdata/src/syntaxerror/x_test.go [new file with mode: 0644]