]> Cypherpunks repositories - gostls13.git/commitdiff
bug264 didn't report BUG correctly, caused "fail" from test/run
authorRob Pike <r@golang.org>
Thu, 25 Mar 2010 21:27:24 +0000 (14:27 -0700)
committerRob Pike <r@golang.org>
Thu, 25 Mar 2010 21:27:24 +0000 (14:27 -0700)
R=rsc, gri
CC=golang-dev
https://golang.org/cl/762041

test/bugs/bug264.go
test/golden.out

index 110f42e20ebfd4ba22accc8cc5929d9f9fc4bc1e..e0b288d94a07ee6f81817e9ca3258eaef1141fbe 100644 (file)
@@ -1,4 +1,4 @@
-// $G $D/$F.go && $L $F.$A && ./$A.out
+// $G $D/$F.go && $L $F.$A && ./$A.out || echo BUG
 
 // Copyright 2010 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
@@ -38,12 +38,12 @@ var _, _ = bal() // bal is called twice
 
 func main() {
        if fooCount != 1 {
-               panic("BUG: fooCount != 1")
+               panic("fooCount != 1")
        }
        if barCount != 1 {
-               panic("BUG: barCount != 1")
+               panic("barCount != 1")
        }
        if balCount != 1 {
-               panic("BUG: balCount != 1")
+               panic("balCount != 1")
        }
 }
index a370e06ba76793c8654050bfd48352a3f9bae0c8..9e08b20e01f6301c7e996d152d889d307bb04b13 100644 (file)
@@ -189,5 +189,6 @@ bar
 bar
 bal
 bal
-BUG: barCount != 1
+barCount != 1
 panic PC=xxx
+BUG