From: Rob Pike Date: Thu, 25 Mar 2010 21:27:24 +0000 (-0700) Subject: bug264 didn't report BUG correctly, caused "fail" from test/run X-Git-Tag: weekly.2010-03-30~51 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c93273c0f594317914616aab2cc6ed42b8cff1ad;p=gostls13.git bug264 didn't report BUG correctly, caused "fail" from test/run R=rsc, gri CC=golang-dev https://golang.org/cl/762041 --- diff --git a/test/bugs/bug264.go b/test/bugs/bug264.go index 110f42e20e..e0b288d94a 100644 --- a/test/bugs/bug264.go +++ b/test/bugs/bug264.go @@ -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") } } diff --git a/test/golden.out b/test/golden.out index a370e06ba7..9e08b20e01 100644 --- a/test/golden.out +++ b/test/golden.out @@ -189,5 +189,6 @@ bar bar bal bal -BUG: barCount != 1 +barCount != 1 panic PC=xxx +BUG