Browse Source

Remove printing in case of success

content-update
4 years ago committed by xpetit
parent
commit
13e199c07a
  1. 9
      go/tests/rc/rc.go

9
go/tests/rc/rc.go

@ -255,10 +255,10 @@ func main() {
fsetFile := token.NewFileSet()
fsetPkg := token.NewFileSet()
fmt.Println("Parsing")
file, err := parser.ParseFile(fsetFile, filename, nil, parser.AllErrors)
if err != nil {
fmt.Println("Parsing")
fmt.Println(err.Error())
os.Exit(1)
}
@ -282,17 +282,12 @@ func main() {
analyzeArrayT()
analyzeForStmt(allowedImports)
fmt.Println(identation + "OK")
fmt.Println("Cheating")
if len(illegals) > 0 {
fmt.Println("Cheating")
for _, i := range illegals {
fmt.Println(identation + i.String())
}
os.Exit(1)
} else {
fmt.Println(identation + "OK")
}
}

Loading…
Cancel
Save