]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/types2: list errors by default in TestManual
authorRobert Griesemer <gri@golang.org>
Fri, 30 Apr 2021 17:20:38 +0000 (10:20 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 30 Apr 2021 17:48:17 +0000 (17:48 +0000)
commit95c5f4da80960d0e3511d39c9a9db7280099a37e
treec90a2190c539c40532c23bec83efd91edefc5bcb
parentc55d5c887e8644df1e024573dbcf4e6e819371c2
cmd/compile/internal/types2: list errors by default in TestManual

TestManual is used for debugging; in this case we usually want to
see error messages reported rather than checked against ERROR comments
in the provided files. Make this the default. Use the new -verify
flag to verify reported errors against ERROR comments.

With this change we cannot get an error list for the non-manual
tests, but that is usually not useful anyway because there are
usually many errors in those test files. Run those tests manually
instead.

Also, corrected -lang flag synopsys: it applies to all tests, not
just TestManual.

Change-Id: I56e0ea0583840fc3ea150d9ccfc330370b66191c
Reviewed-on: https://go-review.googlesource.com/c/go/+/315729
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/check_test.go