1
0
mirror of https://github.com/golang/go synced 2024-11-24 22:37:56 -07:00

os: disable Hostname test on OpenBSD

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4901054
This commit is contained in:
Joel Sing 2011-08-22 23:24:16 -04:00 committed by Russ Cox
parent 3554325937
commit a9fe3a0ce3

View File

@ -920,6 +920,12 @@ func TestHostname(t *testing.T) {
if syscall.OS == "windows" || syscall.OS == "plan9" {
return
}
// TODO(jsing): Fix nametomib() on OpenBSD
if syscall.OS == "openbsd" {
return
}
// Check internal Hostname() against the output of /bin/hostname.
// Allow that the internal Hostname returns a Fully Qualified Domain Name
// and the /bin/hostname only returns the first component