mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
104, 107, 108: they are known to fail, so mark them appropriately.
update golden add the "goroutines" test R=iant DELTA=74 (36 added, 23 deleted, 15 changed) OCL=16194 CL=16206
This commit is contained in:
parent
c59b2a3db1
commit
fa2b4cbf44
2 changed files with 51 additions and 34 deletions
40
test/chan/goroutines.go
Normal file
40
test/chan/goroutines.go
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
// $G $D/$F.go && $L $F.$A && ./$A.out
|
||||||
|
|
||||||
|
// Copyright 2009 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// make a lot of goroutines, threaded together.
|
||||||
|
// tear them down cleanly.
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"strings";
|
||||||
|
)
|
||||||
|
|
||||||
|
func f(left, right *chan int) {
|
||||||
|
left <- <-right;
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
var n = 10000;
|
||||||
|
if sys.argc() > 1 {
|
||||||
|
var ok bool;
|
||||||
|
n, ok = strings.atoi(sys.argv(1));
|
||||||
|
if !ok {
|
||||||
|
print("bad arg\n");
|
||||||
|
sys.exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
leftmost := new(chan int);
|
||||||
|
right := leftmost;
|
||||||
|
left := leftmost;
|
||||||
|
for i := 0; i < n; i++ {
|
||||||
|
right = new(chan int);
|
||||||
|
go f(left, right);
|
||||||
|
left = right;
|
||||||
|
}
|
||||||
|
go func(c *chan int) { c <- 1 }(right);
|
||||||
|
<-leftmost;
|
||||||
|
}
|
||||||
|
|
@ -54,7 +54,7 @@ bugs/bug020.go:7: type of a structure field cannot be an open array
|
||||||
BUG should compile
|
BUG should compile
|
||||||
|
|
||||||
=========== bugs/bug026.go
|
=========== bugs/bug026.go
|
||||||
sys·printstring: main·sigi_I: not defined
|
sys·printstring: main·sigs_I: not defined
|
||||||
BUG: known to fail incorrectly
|
BUG: known to fail incorrectly
|
||||||
|
|
||||||
=========== bugs/bug032.go
|
=========== bugs/bug032.go
|
||||||
|
|
@ -102,41 +102,28 @@ bugs/bug087.go:8: illegal combination of literals LEN 9
|
||||||
bugs/bug087.go:8: illegal combination of literals LEN 9
|
bugs/bug087.go:8: illegal combination of literals LEN 9
|
||||||
BUG: fails incorrectly
|
BUG: fails incorrectly
|
||||||
|
|
||||||
=========== bugs/bug088.go
|
|
||||||
bugs/bug088.dir/bug1.go:8: shape error across :=
|
|
||||||
bugs/bug088.dir/bug1.go:8: a2: undefined
|
|
||||||
bugs/bug088.dir/bug1.go:8: b2: undefined
|
|
||||||
bugs/bug088.dir/bug1.go:8: illegal types for operand: AS
|
|
||||||
(<(bug0)P.int32>INT32)
|
|
||||||
BUG: fails incorrectly
|
|
||||||
|
|
||||||
=========== bugs/bug090.go
|
=========== bugs/bug090.go
|
||||||
BUG: compilation succeeds incorrectly
|
BUG: compilation succeeds incorrectly
|
||||||
|
|
||||||
=========== bugs/bug093.go
|
=========== bugs/bug093.go
|
||||||
throw: ifaces2i: nil pointer
|
M
|
||||||
SIGSEGV: segmentation violation
|
|
||||||
Faulting address: 0x0
|
|
||||||
pc: xxx
|
|
||||||
|
|
||||||
BUG: fails incorrectly
|
|
||||||
|
|
||||||
=========== bugs/bug094.go
|
=========== bugs/bug094.go
|
||||||
bugs/bug094.go:11: left side of := must be a name
|
bugs/bug094.go:11: left side of := must be a name
|
||||||
bad top
|
bad top
|
||||||
. LITERAL-I0 l(353)
|
. LITERAL-I0 l(369)
|
||||||
bugs/bug094.go:11: fatal error: walktype: top=3 LITERAL
|
bugs/bug094.go:11: fatal error: walktype: top=3 LITERAL
|
||||||
BUG: fails incorrectly
|
BUG: fails incorrectly
|
||||||
|
|
||||||
=========== bugs/bug095.go
|
=========== bugs/bug095.go
|
||||||
found 2, expected 1
|
found 2, expected 1
|
||||||
|
|
||||||
panic on line 352 PC=xxx
|
panic on line 368 PC=xxx
|
||||||
BUG wrong result
|
BUG wrong result
|
||||||
|
|
||||||
=========== bugs/bug097.go
|
=========== bugs/bug097.go
|
||||||
|
|
||||||
panic on line 354 PC=xxx
|
panic on line 370 PC=xxx
|
||||||
BUG wrong result
|
BUG wrong result
|
||||||
|
|
||||||
=========== bugs/bug098.go
|
=========== bugs/bug098.go
|
||||||
|
|
@ -147,22 +134,12 @@ BUG should compile
|
||||||
|
|
||||||
=========== bugs/bug099.go
|
=========== bugs/bug099.go
|
||||||
done1
|
done1
|
||||||
SIGSEGV: segmentation violation
|
|
||||||
Faulting address: 0x0
|
|
||||||
pc: xxx
|
|
||||||
|
|
||||||
|
=========== bugs/bug105.go
|
||||||
=========== bugs/bug102.go
|
bugs/bug105.go:8: P: undefined
|
||||||
throw: index out of range
|
bugs/bug105.go:9: illegal types for operand: RETURN
|
||||||
SIGSEGV: segmentation violation
|
(<int32>INT32)
|
||||||
Faulting address: 0x0
|
BUG: should compile
|
||||||
pc: xxx
|
|
||||||
|
|
||||||
=========== bugs/bug104.go
|
|
||||||
BUG: errchk: command succeeded unexpectedly: 6g bugs/bug104.go
|
|
||||||
|
|
||||||
=========== bugs/bug107.go
|
|
||||||
BUG: errchk: command succeeded unexpectedly: 6g bugs/bug107.go
|
|
||||||
|
|
||||||
=========== bugs/bug108.go
|
=========== bugs/bug108.go
|
||||||
bugs/bug108.go:4: stupid shift: 1025
|
bugs/bug108.go:4: stupid shift: 1025
|
||||||
|
|
@ -210,7 +187,7 @@ fixedbugs/bug035.go:7: var f redeclared in this block
|
||||||
|
|
||||||
=========== fixedbugs/bug037.go
|
=========== fixedbugs/bug037.go
|
||||||
fixedbugs/bug037.go:6: vlong: undefined
|
fixedbugs/bug037.go:6: vlong: undefined
|
||||||
fixedbugs/bug037.go:6: fatal error: addvar: n=NAME-s G0 a(1) l(348) t=<T> nil
|
fixedbugs/bug037.go:6: fatal error: addvar: n=NAME-s G0 a(1) l(364) t=<T> nil
|
||||||
|
|
||||||
=========== fixedbugs/bug039.go
|
=========== fixedbugs/bug039.go
|
||||||
fixedbugs/bug039.go:6: var x redeclared in this block
|
fixedbugs/bug039.go:6: var x redeclared in this block
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue