From 8ef234d61915b463c0fead6e07cb01f504b141f9 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 24 Jul 2009 13:07:12 -0700 Subject: 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 --- src/pkg/go/parser/parser_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/go/parser/parser_test.go') 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); -- cgit v1.2.3