mirror of
https://github.com/golang/go
synced 2024-11-26 03:47:57 -07: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
@ -1,10 +1,7 @@
|
|||||||
// $G $D/$F.dir/bug0.go && errchk $G $D/$F.dir/bug1.go
|
// errorcheckdir
|
||||||
|
|
||||||
// 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.
|
|
||||||
|
|
||||||
// Copyright 2009 The Go Authors. All rights reserved.
|
// Copyright 2009 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// 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
|
// errorcheckdir
|
||||||
|
|
||||||
// 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.
|
|
||||||
|
|
||||||
// Copyright 2009 The Go Authors. All rights reserved.
|
// Copyright 2009 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// 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
|
// rundir
|
||||||
|
|
||||||
// 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.
|
|
||||||
|
|
||||||
// Copyright 2009 The Go Authors. All rights reserved.
|
// Copyright 2009 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// 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
|
// rundir
|
||||||
|
|
||||||
// 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.
|
|
||||||
|
|
||||||
// Copyright 2011 The Go Authors. All rights reserved.
|
// Copyright 2011 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Test case for issue 1402.
|
// 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
|
// rundir
|
||||||
|
|
||||||
// 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.
|
|
||||||
|
|
||||||
// Copyright 2011 The Go Authors. All rights reserved.
|
// Copyright 2011 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Test case for issue 1550
|
// Test case for issue 1550: a type cannot implement an interface
|
||||||
ignored
|
// 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
|
// rundir
|
||||||
|
|
||||||
// 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.
|
|
||||||
|
|
||||||
// Copyright 2011 The Go Authors. All rights reserved.
|
// Copyright 2011 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// Issue 1536: bug when handling imported interfaces with
|
||||||
|
// private methods.
|
||||||
|
|
||||||
package ignored
|
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
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package p1
|
package p1
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
type Fer interface {
|
type Fer interface {
|
||||||
f() string
|
f() string
|
||||||
}
|
}
|
||||||
|
|
||||||
type Object struct {}
|
type Object struct{}
|
||||||
|
|
||||||
func (this *Object) f() string {
|
func (this *Object) f() string {
|
||||||
return "Object.f"
|
return "Object.f"
|
||||||
}
|
}
|
||||||
|
|
||||||
func PrintFer(fer Fer) {
|
func PrintFer(fer Fer) {
|
||||||
fmt.Sprintln(fer.f())
|
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
|
// rundir
|
||||||
|
|
||||||
// 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.
|
|
||||||
|
|
||||||
// Copyright 2012 The Go Authors. All rights reserved.
|
// Copyright 2012 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// Issue 1743: test embedding of imported types with private methods.
|
||||||
|
|
||||||
package ignored
|
package ignored
|
||||||
|
15
test/run.go
15
test/run.go
@ -672,22 +672,15 @@ var skipOkay = map[string]bool{
|
|||||||
"dwarf/z7.go": true,
|
"dwarf/z7.go": true,
|
||||||
"dwarf/z8.go": true,
|
"dwarf/z8.go": true,
|
||||||
"dwarf/z9.go": true,
|
"dwarf/z9.go": true,
|
||||||
"fixedbugs/bug083.go": true,
|
|
||||||
"fixedbugs/bug133.go": true,
|
|
||||||
"fixedbugs/bug160.go": true,
|
|
||||||
"fixedbugs/bug191.go": true,
|
"fixedbugs/bug191.go": true,
|
||||||
"fixedbugs/bug248.go": true,
|
"fixedbugs/bug248.go": true, // combines errorcheckdir and rundir in the same dir.
|
||||||
"fixedbugs/bug302.go": true,
|
"fixedbugs/bug302.go": true, // tests both .$O and .a imports.
|
||||||
"fixedbugs/bug313.go": true,
|
"fixedbugs/bug313.go": true, // errorcheckdir with failures in the middle.
|
||||||
"fixedbugs/bug322.go": true,
|
"fixedbugs/bug345.go": true, // needs the appropriate flags in gc invocation.
|
||||||
"fixedbugs/bug324.go": true,
|
|
||||||
"fixedbugs/bug345.go": true,
|
|
||||||
"fixedbugs/bug367.go": true,
|
|
||||||
"fixedbugs/bug369.go": true,
|
"fixedbugs/bug369.go": true,
|
||||||
"fixedbugs/bug382.go": true,
|
"fixedbugs/bug382.go": true,
|
||||||
"fixedbugs/bug385_32.go": true,
|
"fixedbugs/bug385_32.go": true,
|
||||||
"fixedbugs/bug385_64.go": true,
|
"fixedbugs/bug385_64.go": true,
|
||||||
"fixedbugs/bug414.go": true,
|
|
||||||
"fixedbugs/bug424.go": true,
|
"fixedbugs/bug424.go": true,
|
||||||
"fixedbugs/bug429.go": true,
|
"fixedbugs/bug429.go": true,
|
||||||
"fixedbugs/bug437.go": true,
|
"fixedbugs/bug437.go": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user