From: Joel Sing Date: Tue, 23 Aug 2011 03:24:16 +0000 (-0400) Subject: os: disable Hostname test on OpenBSD X-Git-Tag: weekly.2011-09-01~124 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a9fe3a0ce3ab60f35ee6c558c455df05e4696a04;p=gostls13.git os: disable Hostname test on OpenBSD R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4901054 --- diff --git a/src/pkg/os/os_test.go b/src/pkg/os/os_test.go index 4d60333df7..f9bacebf11 100644 --- a/src/pkg/os/os_test.go +++ b/src/pkg/os/os_test.go @@ -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