]> Cypherpunks repositories - gostls13.git/commitdiff
tests changed - throw calls panic directly now
authorRuss Cox <rsc@golang.org>
Mon, 30 Mar 2009 07:28:08 +0000 (00:28 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 30 Mar 2009 07:28:08 +0000 (00:28 -0700)
instead of dereferencing nil, so no more SIGSEGVs.

R=r
DELTA=28  (0 added, 14 deleted, 14 changed)
OCL=26881
CL=26881

test/golden.out

index 879b9f0ac0458ec54f20ff7a924e2420b15dfade..aaeea08e775616237f3720321cb470fe85e73aaa 100644 (file)
@@ -2,34 +2,26 @@
 =========== ./cmp2.go
 comparing uncomparable type []int
 throw: interface compare
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
 
+panic PC=xxx
 
 =========== ./cmp3.go
 comparing uncomparable type map[string] int
 throw: interface compare
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
 
+panic PC=xxx
 
 =========== ./cmp4.go
 hash of unhashable type []int
 throw: interface hash
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
 
+panic PC=xxx
 
 =========== ./cmp5.go
 hash of unhashable type map[string] int
 throw: interface hash
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
 
+panic PC=xxx
 
 =========== ./convlit.go
 BUG: errchk: ./convlit.go: unmatched error messages:
@@ -46,18 +38,14 @@ hello, world
 =========== ./interface2.go
 cannot convert type *main.S to interface main.I: missing method Foo
 throw: interface conversion
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
 
+panic PC=xxx
 
 =========== ./interface3.go
 cannot convert type *main.S to interface main.I2: missing method Name
 throw: interface conversion
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
 
+panic PC=xxx
 
 =========== ./peano.go
 0! = 1
@@ -240,10 +228,8 @@ fixedbugs/bug103.go:8: function requires a return type
 =========== fixedbugs/bug113.go
 main.I is int, not int32
 throw: interface conversion
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
 
+panic PC=xxx
 
 =========== fixedbugs/bug121.go
 fixedbugs/bug121.go:9: syntax error near T