mirror of
https://github.com/golang/go
synced 2024-11-02 11:50:30 +00:00
test: use rundir and errorcheckdir for a few more tests.
Update #4139. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/6620070
This commit is contained in:
parent
51310d8320
commit
d9953c9dde
13 changed files with 59 additions and 80 deletions
|
@ -1,10 +1,7 @@
|
|||
// $G $D/$F.dir/bug0.go && errchk $G $D/$F.dir/bug1.go
|
||||
|
||||
// NOTE: This test is not run by 'run.go' and so not run by all.bash.
|
||||
// To run this test you must use the ./run shell script.
|
||||
// errorcheckdir
|
||||
|
||||
// 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.
|
||||
|
||||
ignored
|
||||
package ignored
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
// $G $D/$F.dir/bug0.go && $G $D/$F.dir/bug1.go && errchk $G $D/$F.dir/bug2.go
|
||||
|
||||
// NOTE: This test is not run by 'run.go' and so not run by all.bash.
|
||||
// To run this test you must use the ./run shell script.
|
||||
// errorcheckdir
|
||||
|
||||
// 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.
|
||||
|
||||
ignored
|
||||
package ignored
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
// $G $D/bug160.dir/x.go && $G $D/bug160.dir/y.go && $L y.$A && ./$A.out
|
||||
|
||||
// NOTE: This test is not run by 'run.go' and so not run by all.bash.
|
||||
// To run this test you must use the ./run shell script.
|
||||
// rundir
|
||||
|
||||
// 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.
|
||||
|
||||
nothing to see here
|
||||
package ignored
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
// $G $D/$F.dir/lib.go && $G $D/$F.dir/main.go && $L main.$A && ./$A.out || echo BUG: fails incorrectly
|
||||
|
||||
// NOTE: This test is not run by 'run.go' and so not run by all.bash.
|
||||
// To run this test you must use the ./run shell script.
|
||||
// rundir
|
||||
|
||||
// Copyright 2011 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.
|
||||
|
||||
// Test case for issue 1402.
|
||||
ignored
|
||||
package ignored
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
// $G $D/$F.dir/p.go && $G $D/$F.dir/main.go && $L main.$A && ./$A.out
|
||||
|
||||
// NOTE: This test is not run by 'run.go' and so not run by all.bash.
|
||||
// To run this test you must use the ./run shell script.
|
||||
// rundir
|
||||
|
||||
// Copyright 2011 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.
|
||||
|
||||
// Test case for issue 1550
|
||||
ignored
|
||||
// Test case for issue 1550: a type cannot implement an interface
|
||||
// from another package with a private method, and type assertions
|
||||
// should fail.
|
||||
package ignored
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// $G $D/$F.dir/p.go && $G $D/$F.dir/main.go && $L main.$A && ./$A.out || echo BUG: should not fail
|
||||
|
||||
// NOTE: This test is not run by 'run.go' and so not run by all.bash.
|
||||
// To run this test you must use the ./run shell script.
|
||||
// rundir
|
||||
|
||||
// Copyright 2011 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.
|
||||
|
||||
// Issue 1536: bug when handling imported interfaces with
|
||||
// private methods.
|
||||
|
||||
package ignored
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
// Copyright 2012 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.
|
||||
|
||||
package main
|
||||
|
||||
import "./p1"
|
||||
|
||||
type MyObject struct {
|
||||
p1.Fer
|
||||
}
|
||||
|
||||
func main() {
|
||||
var b p1.Fer = &p1.Object{}
|
||||
p1.PrintFer(b)
|
||||
var c p1.Fer = &MyObject{b}
|
||||
p1.PrintFer(c)
|
||||
}
|
|
@ -2,20 +2,20 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package p1
|
||||
package p1
|
||||
|
||||
import "fmt"
|
||||
import "fmt"
|
||||
|
||||
type Fer interface {
|
||||
f() string
|
||||
}
|
||||
type Fer interface {
|
||||
f() string
|
||||
}
|
||||
|
||||
type Object struct {}
|
||||
type Object struct{}
|
||||
|
||||
func (this *Object) f() string {
|
||||
return "Object.f"
|
||||
}
|
||||
func (this *Object) f() string {
|
||||
return "Object.f"
|
||||
}
|
||||
|
||||
func PrintFer(fer Fer) {
|
||||
fmt.Sprintln(fer.f())
|
||||
}
|
||||
func PrintFer(fer Fer) {
|
||||
fmt.Sprintln(fer.f())
|
||||
}
|
||||
|
|
18
test/fixedbugs/bug414.dir/prog.go
Normal file
18
test/fixedbugs/bug414.dir/prog.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Copyright 2012 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.
|
||||
|
||||
package main
|
||||
|
||||
import "./p1"
|
||||
|
||||
type MyObject struct {
|
||||
p1.Fer
|
||||
}
|
||||
|
||||
func main() {
|
||||
var b p1.Fer = &p1.Object{}
|
||||
p1.PrintFer(b)
|
||||
var c p1.Fer = &MyObject{b}
|
||||
p1.PrintFer(c)
|
||||
}
|
|
@ -1,10 +1,9 @@
|
|||
// $G $D/$F.dir/p1.go && $G $D/$F.dir/main.go && $L main.$A && ./$A.out
|
||||
|
||||
// NOTE: This test is not run by 'run.go' and so not run by all.bash.
|
||||
// To run this test you must use the ./run shell script.
|
||||
// rundir
|
||||
|
||||
// Copyright 2012 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.
|
||||
|
||||
// Issue 1743: test embedding of imported types with private methods.
|
||||
|
||||
package ignored
|
||||
|
|
15
test/run.go
15
test/run.go
|
@ -672,22 +672,15 @@ var skipOkay = map[string]bool{
|
|||
"dwarf/z7.go": true,
|
||||
"dwarf/z8.go": true,
|
||||
"dwarf/z9.go": true,
|
||||
"fixedbugs/bug083.go": true,
|
||||
"fixedbugs/bug133.go": true,
|
||||
"fixedbugs/bug160.go": true,
|
||||
"fixedbugs/bug191.go": true,
|
||||
"fixedbugs/bug248.go": true,
|
||||
"fixedbugs/bug302.go": true,
|
||||
"fixedbugs/bug313.go": true,
|
||||
"fixedbugs/bug322.go": true,
|
||||
"fixedbugs/bug324.go": true,
|
||||
"fixedbugs/bug345.go": true,
|
||||
"fixedbugs/bug367.go": true,
|
||||
"fixedbugs/bug248.go": true, // combines errorcheckdir and rundir in the same dir.
|
||||
"fixedbugs/bug302.go": true, // tests both .$O and .a imports.
|
||||
"fixedbugs/bug313.go": true, // errorcheckdir with failures in the middle.
|
||||
"fixedbugs/bug345.go": true, // needs the appropriate flags in gc invocation.
|
||||
"fixedbugs/bug369.go": true,
|
||||
"fixedbugs/bug382.go": true,
|
||||
"fixedbugs/bug385_32.go": true,
|
||||
"fixedbugs/bug385_64.go": true,
|
||||
"fixedbugs/bug414.go": true,
|
||||
"fixedbugs/bug424.go": true,
|
||||
"fixedbugs/bug429.go": true,
|
||||
"fixedbugs/bug437.go": true,
|
||||
|
|
Loading…
Reference in a new issue