diff options
author | Ian Lance Taylor <iant@golang.org> | 2009-07-24 13:07:12 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2009-07-24 13:07:12 -0700 |
commit | 8ef234d61915b463c0fead6e07cb01f504b141f9 (patch) | |
tree | 4d8a349473ba00da9268dd5786c5b6294263ab53 /src/pkg/go/parser/parser_test.go | |
parent | 97ca7791117d3aa34c9095c18bb397f2c8a23f95 (diff) | |
download | golang-8ef234d61915b463c0fead6e07cb01f504b141f9.tar.gz |
If we can't parse the package, call Fatalf so that the test
fails without crashing.
R=gri
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=32164
CL=32171
Diffstat (limited to 'src/pkg/go/parser/parser_test.go')
-rw-r--r-- | src/pkg/go/parser/parser_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/go/parser/parser_test.go b/src/pkg/go/parser/parser_test.go index 3b02c5034..b6618d06e 100644 --- a/src/pkg/go/parser/parser_test.go +++ b/src/pkg/go/parser/parser_test.go @@ -78,7 +78,7 @@ func TestParse4(t *testing.T) { path := "."; pkg, err := ParsePackage(path, filter, 0); if err != nil { - t.Errorf("ParsePackage(%s): %v", path, err); + t.Fatalf("ParsePackage(%s): %v", path, err); } if pkg.Name != "parser" { t.Errorf("incorrect package name: %s", pkg.Name); |