From a99a7f60c32121d61365a25eb09091e73043958c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 30 Mar 2009 00:28:08 -0700 Subject: [PATCH] tests changed - throw calls panic directly now 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 | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/test/golden.out b/test/golden.out index 879b9f0ac0..aaeea08e77 100644 --- a/test/golden.out +++ b/test/golden.out @@ -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 -- 2.48.1