[release-branch.go1.6] all: merge master into release-branch.go1.6
Change-Id: I392f9307c9f9012fd5cebc0013debcee6526b762
This commit is contained in:
commit
c887be1b2e
|
@ -44,7 +44,9 @@ var godocTests = []struct {
|
||||||
{
|
{
|
||||||
args: []string{"nonexistingpkg"},
|
args: []string{"nonexistingpkg"},
|
||||||
matches: []string{
|
matches: []string{
|
||||||
`no such file or directory|does not exist|cannot find the file`,
|
// The last pattern (does not e) is for plan9:
|
||||||
|
// http://build.golang.org/log/2d8e5e14ed365bfa434b37ec0338cd9e6f8dd9bf
|
||||||
|
`no such file or directory|does not exist|cannot find the file|(?:' does not e)`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
// 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.
|
||||||
|
|
||||||
|
// +build !plan9
|
||||||
|
|
||||||
// The stress utility is intended for catching of episodic failures.
|
// The stress utility is intended for catching of episodic failures.
|
||||||
// It runs a given process in parallel in a loop and collects any failures.
|
// It runs a given process in parallel in a loop and collects any failures.
|
||||||
// Usage:
|
// Usage:
|
||||||
|
|
|
@ -6,6 +6,9 @@ package interp
|
||||||
|
|
||||||
import "syscall"
|
import "syscall"
|
||||||
|
|
||||||
|
func ext۰os۰Pipe(fr *frame, args []value) value {
|
||||||
|
panic("os.Pipe not yet implemented")
|
||||||
|
}
|
||||||
func ext۰syscall۰Close(fr *frame, args []value) value {
|
func ext۰syscall۰Close(fr *frame, args []value) value {
|
||||||
panic("syscall.Close not yet implemented")
|
panic("syscall.Close not yet implemented")
|
||||||
}
|
}
|
||||||
|
|
|
@ -680,6 +680,12 @@ func tokenOf(o types.Object) string {
|
||||||
return "const"
|
return "const"
|
||||||
case *types.PkgName:
|
case *types.PkgName:
|
||||||
return "package"
|
return "package"
|
||||||
|
case *types.Builtin:
|
||||||
|
return "builtin" // e.g. when describing package "unsafe"
|
||||||
|
case *types.Nil:
|
||||||
|
return "nil"
|
||||||
|
case *types.Label:
|
||||||
|
return "label"
|
||||||
}
|
}
|
||||||
panic(o)
|
panic(o)
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ package describe // @describe pkgdecl "describe"
|
||||||
import (
|
import (
|
||||||
"nosuchpkg" // @describe badimport1 "nosuchpkg"
|
"nosuchpkg" // @describe badimport1 "nosuchpkg"
|
||||||
nosuchpkg2 "nosuchpkg" // @describe badimport2 "nosuchpkg2"
|
nosuchpkg2 "nosuchpkg" // @describe badimport2 "nosuchpkg2"
|
||||||
|
_ "unsafe" // @describe unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ nosuchpkg.T
|
var _ nosuchpkg.T
|
||||||
|
|
|
@ -19,6 +19,13 @@ Error: can't import package "nosuchpkg"
|
||||||
-------- @describe badimport2 --------
|
-------- @describe badimport2 --------
|
||||||
|
|
||||||
Error: can't import package "nosuchpkg"
|
Error: can't import package "nosuchpkg"
|
||||||
|
-------- @describe unsafe --------
|
||||||
|
import of package "unsafe"
|
||||||
|
builtin Alignof
|
||||||
|
builtin Offsetof
|
||||||
|
type Pointer unsafe.Pointer
|
||||||
|
builtin Sizeof
|
||||||
|
|
||||||
-------- @describe type-ref-builtin --------
|
-------- @describe type-ref-builtin --------
|
||||||
reference to built-in type float64
|
reference to built-in type float64
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue