test cleanup
- do not print tracebacks if $GOTRACEBACK=0
- set GOTRACEBACK=0 during tests
- filter out pc numbers in errors
R=r
DELTA=70 (22 added, 30 deleted, 18 changed)
OCL=15618
CL=15642
diff --git a/test/golden.out b/test/golden.out
index 758e5b5..ceac240 100644
--- a/test/golden.out
+++ b/test/golden.out
@@ -128,17 +128,7 @@
throw: ifaces2i: nil pointer
SIGSEGV: segmentation violation
Faulting address: 0x0
-pc: 0x1c11
-
-0x1c11?zi
- throw(30465, 0, 0, ...)
- throw(0x7701, 0x0, 0x0, ...)
-0x2113?zi
- sys·ifaces2i(31496, 0, 31536, ...)
- sys·ifaces2i(0x7b08, 0x7b30, 0x0, ...)
-0x136f?zi
- main·main(1, 0, 1606414952, ...)
- main·main(0x1, 0x7fff5fbff268, 0x0, ...)
+pc: xxx
BUG: fails incorrectly
@@ -152,18 +142,12 @@
=========== bugs/bug095.go
found 2, expected 1
-panic on line 352 PC=0x139e
-0x139e?zi
- main·main(1, 0, 1606414952, ...)
- main·main(0x1, 0x7fff5fbff268, 0x0, ...)
+panic on line 352 PC=xxx
BUG wrong result
=========== bugs/bug097.go
-panic on line 354 PC=0x13bc
-0x13bc?zi
- main·main(1, 0, 1606414952, ...)
- main·main(0x1, 0x7fff5fbff268, 0x0, ...)
+panic on line 354 PC=xxx
BUG wrong result
=========== bugs/bug098.go
@@ -176,28 +160,14 @@
done1
SIGSEGV: segmentation violation
Faulting address: 0x0
-pc: 0x0
-
-0x0?zi
- panic(5070, 0, 45192, ...)
- panic(0x13ce, 0xb088, 0xb088, ...)
+pc: xxx
=========== bugs/bug102.go
throw: index out of range
SIGSEGV: segmentation violation
Faulting address: 0x0
-pc: 0x2615
-
-0x2615?zi
- throw(31052, 0, 0, ...)
- throw(0x794c, 0x0, 0x1315, ...)
-0x2569?zi
- sys·throwindex(45096, 0, 0, ...)
- sys·throwindex(0xb028, 0x0, 0x0, ...)
-0x1315?zi
- main·main(1, 0, 1606414952, ...)
- main·main(0x1, 0x7fff5fbff268, 0x0, ...)
+pc: xxx
=========== fixedbugs/bug016.go
diff --git a/test/run b/test/run
index dc429dd..3617301 100755
--- a/test/run
+++ b/test/run
@@ -15,6 +15,7 @@
export G=${A}g
export L=${A}l
+export GOTRACEBACK=0
failed=0
@@ -55,6 +56,9 @@
egrep -v '^(r[0-9a-z]+|[cfg]s) +0x' |
sed '/tmp.*Bus error/s/.*Bus/Bus/; /tmp.*Trace.BPT/s/.*Trace/Trace/
s!'$RUNFILE'!$RUNFILE!g
+ s/ PC=0x[0-9a-f]*/ PC=xxx/
+ s/^pc: 0x[0-9a-f]*/pc: xxx/
+ /^Trace\/breakpoint trap/d
/RUNFILE/ s/line 1: *[0-9]*/line 1: PID/' > run.out
case $failed in