]> Cypherpunks repositories - gostls13.git/commitdiff
fix some tests
authorRob Pike <r@golang.org>
Sat, 20 Sep 2008 22:16:48 +0000 (15:16 -0700)
committerRob Pike <r@golang.org>
Sat, 20 Sep 2008 22:16:48 +0000 (15:16 -0700)
R=ken
OCL=15598
CL=15598

test/fixedbugs/bug103.go [moved from test/bugs/bug103.go with 100% similarity]
test/golden.out
test/ken/chan.go

similarity index 100%
rename from test/bugs/bug103.go
rename to test/fixedbugs/bug103.go
index 66ff71550565e42feb0d78d8f11d1a3bcb33ba7e..758e5b5959bab18e0fedf8bc1ea3a49aef1c7728 100644 (file)
@@ -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>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
index a3a32fa83b38b9dbf85a9720fd38a957bb4ec29c..be4fa86c33889cea9947cda0b4ca2cd8b4ba09e4 100644 (file)
@@ -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);
 }