summaryrefslogtreecommitdiff
path: root/test/chan/select3.go
Commit message (Collapse)AuthorAgeFilesLines
* test/chan: document testsRob Pike2012-02-191-1/+1
| | | | | | R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5677094
* test: use testlib (first 100)Russ Cox2012-02-161-1/+1
| | | | | | | | | | | X ,s;^// \$G (\$D/)?\$F\.go *$;// compile;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A *$;// build;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A && \./\$A\.out *$;// run;g X ,s;^// errchk \$G( -e)? (\$D/)?\$F\.go *$;// errorcheck;g R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5656082
* test: test that x := <-c accepts a general expressionIan Lance Taylor2012-02-011-2/+2
| | | | | | | | The gccgo compiler used to fail to parse this. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5610051
* gc: implement nil chan supportRuss Cox2011-08-171-4/+4
| | | | | | | | | The spec has defined nil chans this way for months. I'm behind. R=ken2 CC=golang-dev http://codereview.appspot.com/4897050
* go code: replace closed(c) with x, ok := <-cRuss Cox2011-03-111-2/+18
| | | | | | R=golang-dev, rog, bradfitzwork, r CC=golang-dev http://codereview.appspot.com/4243072
* runtime: select bugRuss Cox2011-01-281-0/+9
| | | | | | | | | | | The sanity checking in pass 2 is wrong when a select is offering to communicate in either direction on a channel and neither case is immediately ready. R=ken2 CC=golang-dev http://codereview.appspot.com/3991047
* spec, runtime, tests: send on closed channel panicsRuss Cox2011-01-211-9/+5
| | | | | | | | | | | | | Close of closed channel panics. Receive from closed channel never panics, even if done repeatedly. Fixes issue 1349. Fixes issue 1419. R=gri, iant, ken2, r, gri1, r2, iant2, rog, albert.strasheim, niemeyer, ejsherry CC=golang-dev http://codereview.appspot.com/3989042
* gc: empty selectRuss Cox2010-08-031-31/+26
| | | | | | R=ken2 CC=golang-dev http://codereview.appspot.com/1871057
* channel tests: added a couple of tests with closed channelsRobert Griesemer2010-07-141-1/+33
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1774047
* select statement: initial set of test cases for corner casesRobert Griesemer2010-07-141-0/+176
R=r, rsc CC=golang-dev http://codereview.appspot.com/1772043 Committer: Robert Griesemer <gri@golang.org>