mirror of https://github.com/golang/go.git
cmd/compile/internal/syntax: skip verbose tests in -short mode
This commit is contained in:
parent
1d8cdaf6ce
commit
f50329534a
|
|
@ -10,6 +10,10 @@ import (
|
|||
)
|
||||
|
||||
func TestDump(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.Skip("skipping test in short mode")
|
||||
}
|
||||
|
||||
ast, err := ReadFile(*src, 0)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
|
|||
|
|
@ -11,6 +11,10 @@ import (
|
|||
)
|
||||
|
||||
func TestPrint(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.Skip("skipping test in short mode")
|
||||
}
|
||||
|
||||
ast, err := ReadFile(*src, 0)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
|
|||
|
|
@ -11,6 +11,10 @@ import (
|
|||
)
|
||||
|
||||
func TestScanner(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.Skip("skipping test in short mode")
|
||||
}
|
||||
|
||||
src, err := os.Open("parser.go")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue