gotest: change pattern to Test([^a-z].*)?

warn about files with no tests
be clear about where testing warnings come from

R=r
DELTA=18  (12 added, 3 deleted, 3 changed)
OCL=19988
CL=19993
This commit is contained in:
Russ Cox 2008-11-25 12:49:17 -08:00
parent 480b962df5
commit 92cff8557e
2 changed files with 15 additions and 6 deletions

View file

@ -86,7 +86,7 @@ export func Main(tests *[]Test) {
flag.Parse();
ok := true;
if len(tests) == 0 {
println("gotest: warning: no tests to run");
println("testing: warning: no tests to run");
}
for i := 0; i < len(tests); i++ {
if chatty {