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

Delta Between Two Patch Sets: test/run.go

Issue 6866047: code review 6866047: cmd/gc: fix wrong interaction between inlining and embe... (Closed)
Left Patch Set: diff -r 1f3ebf9a7548 https://go.googlecode.com/hg/ Created 11 years, 3 months ago
Right Patch Set: diff -r 4144b7f4d82e https://go.googlecode.com/hg/ Created 11 years, 3 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « test/fixedbugs/issue3552.dir/two.go ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // skip 1 // skip
2 2
3 // Copyright 2012 The Go Authors. All rights reserved. 3 // Copyright 2012 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style 4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file. 5 // license that can be found in the LICENSE file.
6 6
7 // Run runs tests in the test directory. 7 // Run runs tests in the test directory.
8 // 8 //
9 // TODO(bradfitz): docs of some sort, once we figure out how we're changing 9 // TODO(bradfitz): docs of some sort, once we figure out how we're changing
10 // headers of files 10 // headers of files
11 package main 11 package main
12 12
13 import ( 13 import (
14 "bytes" 14 "bytes"
15 "errors" 15 "errors"
16 "flag" 16 "flag"
17 "fmt" 17 "fmt"
18 "go/build" 18 "go/build"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 dir, gofile string 197 dir, gofile string
198 donec chan bool // closed when done 198 donec chan bool // closed when done
199 199
200 src string 200 src string
201 action string // "compile", "build", etc. 201 action string // "compile", "build", etc.
202 202
203 tempDir string 203 tempDir string
204 err error 204 err error
205 } 205 }
206 206
207 // startTest 207 // startTest
208 func startTest(dir, gofile string) *test { 208 func startTest(dir, gofile string) *test {
209 t := &test{ 209 t := &test{
210 dir: dir, 210 dir: dir,
211 gofile: gofile, 211 gofile: gofile,
212 donec: make(chan bool, 1), 212 donec: make(chan bool, 1),
213 } 213 }
214 if toRun == nil { 214 if toRun == nil {
215 toRun = make(chan *test, maxTests) 215 toRun = make(chan *test, maxTests)
216 go runTests() 216 go runTests()
217 } 217 }
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 lineNum: lineNum, 669 lineNum: lineNum,
670 file: short, 670 file: short,
671 }) 671 })
672 } 672 }
673 } 673 }
674 674
675 return 675 return
676 } 676 }
677 677
678 var skipOkay = map[string]bool{ 678 var skipOkay = map[string]bool{
679 » "linkx.go": true, 679 » "linkx.go": true,
680 » "rotate.go": true, 680 » "rotate.go": true,
681 » "sigchld.go": true, 681 » "sigchld.go": true,
682 » "sinit.go": true, 682 » "sinit.go": true,
683 » "dwarf/main.go": true, 683 » "dwarf/main.go": true,
684 » "dwarf/z1.go": true, 684 » "dwarf/z1.go": true,
685 » "dwarf/z10.go": true, 685 » "dwarf/z10.go": true,
686 » "dwarf/z11.go": true, 686 » "dwarf/z11.go": true,
687 » "dwarf/z12.go": true, 687 » "dwarf/z12.go": true,
688 » "dwarf/z13.go": true, 688 » "dwarf/z13.go": true,
689 » "dwarf/z14.go": true, 689 » "dwarf/z14.go": true,
690 » "dwarf/z15.go": true, 690 » "dwarf/z15.go": true,
691 » "dwarf/z16.go": true, 691 » "dwarf/z16.go": true,
692 » "dwarf/z17.go": true, 692 » "dwarf/z17.go": true,
693 » "dwarf/z18.go": true, 693 » "dwarf/z18.go": true,
694 » "dwarf/z19.go": true, 694 » "dwarf/z19.go": true,
695 » "dwarf/z2.go": true, 695 » "dwarf/z2.go": true,
696 » "dwarf/z20.go": true, 696 » "dwarf/z20.go": true,
697 » "dwarf/z3.go": true, 697 » "dwarf/z3.go": true,
698 » "dwarf/z4.go": true, 698 » "dwarf/z4.go": true,
699 » "dwarf/z5.go": true, 699 » "dwarf/z5.go": true,
700 » "dwarf/z6.go": true, 700 » "dwarf/z6.go": true,
701 » "dwarf/z7.go": true, 701 » "dwarf/z7.go": true,
702 » "dwarf/z8.go": true, 702 » "dwarf/z8.go": true,
703 » "dwarf/z9.go": true, 703 » "dwarf/z9.go": true,
704 » "fixedbugs/bug248.go": true, // combines errorcheckdir and rundir in the same dir. 704 » "fixedbugs/bug248.go": true, // combines errorcheckdir and rundir in the same dir.
705 » "fixedbugs/bug302.go": true, // tests both .$O and .a imports. 705 » "fixedbugs/bug302.go": true, // tests both .$O and .a imports.
706 » "fixedbugs/bug313.go": true, // errorcheckdir with failures in the m iddle. 706 » "fixedbugs/bug313.go": true, // errorcheckdir with failures in the mi ddle.
707 » "fixedbugs/bug345.go": true, // broken 707 » "fixedbugs/bug345.go": true, // needs the appropriate flags in gc inv ocation.
708 » "fixedbugs/bug369.go": true, // needs compiler flags. 708 » "fixedbugs/bug369.go": true, // needs compiler flags.
709 » "fixedbugs/bug385_32.go": true, // arch-specific errors. 709 » "fixedbugs/bug385_32.go": true, // arch-specific errors.
710 » "fixedbugs/bug385_64.go": true, // arch-specific errors. 710 » "fixedbugs/bug385_64.go": true, // arch-specific errors.
711 » "fixedbugs/bug429.go": true, 711 » "fixedbugs/bug429.go": true,
712 » "bugs/bug395.go": true, 712 » "bugs/bug395.go": true,
713 } 713 }
LEFTRIGHT

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