Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(692)

Delta Between Two Patch Sets: test/chan/select5.go

Issue 5869049: code review 5869049: test: use testlib in a few more cases (part 2) (Closed)
Left Patch Set: diff -r 74edd315eec5 https://code.google.com/p/go/ Created 13 years ago
Right Patch Set: diff -r f4f63fb397c6 https://code.google.com/p/go/ Created 12 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « test/64bit.go ('k') | test/crlf.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // $G $D/$F.go && $L $F.$A && ./$A.out >tmp.go && 1 // runoutput
2 // $G tmp.go && $L tmp.$A && ./$A.out || echo BUG: select5
3 // rm -f tmp.go
4 2
5 // Copyright 2011 The Go Authors. All rights reserved. 3 // Copyright 2011 The Go Authors. All rights reserved.
6 // Use of this source code is governed by a BSD-style 4 // Use of this source code is governed by a BSD-style
7 // license that can be found in the LICENSE file. 5 // license that can be found in the LICENSE file.
8 6
9 // Generate test of channel operations and simple selects. 7 // Generate test of channel operations and simple selects.
10 // The output of this program is compiled and run to do the 8 // The output of this program is compiled and run to do the
11 // actual test. 9 // actual test.
12 10
13 // Each test does only one real send or receive at a time, but phrased 11 // Each test does only one real send or receive at a time, but phrased
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 } 472 }
475 if cp < 0 { 473 if cp < 0 {
476 choices = choices[:0] 474 choices = choices[:0]
477 return false 475 return false
478 } 476 }
479 choices[cp].i++ 477 choices[cp].i++
480 choices = choices[:cp+1] 478 choices = choices[:cp+1]
481 cp = 0 479 cp = 0
482 return true 480 return true
483 } 481 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b