fix build

R=rsc
CC=golang-dev
https://golang.org/cl/1913042
This commit is contained in:
Kai Backman 2010-07-30 10:53:26 +03:00
parent 8d76a15122
commit c44f95ff48

View file

@ -159,11 +159,11 @@ func main() {
}
fmt.Printf("%s: expected no error; got %q\n", t.name, err)
case t.err != "" && err != "":
if !bad {
bad = true
fmt.Printf("BUG\n")
}
if strings.Index(err, t.err) < 0 {
if !bad {
bad = true
fmt.Printf("BUG\n")
}
fmt.Printf("%s: expected %q; got %q\n", t.name, t.err, err)
continue
}