Commit b64b75da authored by Ian Lance Taylor's avatar Ian Lance Taylor

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
parent dbba4899
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment