From: Rob Pike Date: Sat, 20 Sep 2008 22:16:48 +0000 (-0700) Subject: fix some tests X-Git-Tag: weekly.2009-11-06~3159 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9ebd9d3b7dfe7b54427f873df80a94495a438608;p=gostls13.git fix some tests R=ken OCL=15598 CL=15598 --- diff --git a/test/bugs/bug103.go b/test/fixedbugs/bug103.go similarity index 100% rename from test/bugs/bug103.go rename to test/fixedbugs/bug103.go diff --git a/test/golden.out b/test/golden.out index 66ff715505..758e5b5959 100644 --- a/test/golden.out +++ b/test/golden.out @@ -1,4 +1,7 @@ +=========== ./dialgoogle.go +/Users/r/go/pkg/net.a:4 dialgoogle.go:5: os is becoming a package behind your back + =========== ./helloworld.go hello, world @@ -277,10 +280,13 @@ fixedbugs/bug073.go:9: illegal types for operand: RSH (INT32) =========== fixedbugs/bug081.go -fixedbugs/bug081.go:5: syntax error +fixedbugs/bug081.go:5: x is var, not type =========== fixedbugs/bug086.go fixedbugs/bug086.go:5: function ends without a return statement =========== fixedbugs/bug091.go fixedbugs/bug091.go:14: label exit not defined + +=========== fixedbugs/bug103.go +fixedbugs/bug103.go:8: function requires a return type diff --git a/test/ken/chan.go b/test/ken/chan.go index a3a32fa83b..be4fa86c33 100644 --- a/test/ken/chan.go +++ b/test/ken/chan.go @@ -262,6 +262,9 @@ main() tests(10); tests(100); - print("tots=", tots, " totr=", totr, "\n"); + if tots != totr || tots != 3648 { + print("tots=", tots, " totr=", totr, "\n"); + sys.exit(1); + } sys.exit(0); }