From a9fe3a0ce3ab60f35ee6c558c455df05e4696a04 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Mon, 22 Aug 2011 23:24:16 -0400 Subject: [PATCH] os: disable Hostname test on OpenBSD R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4901054 --- src/pkg/os/os_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pkg/os/os_test.go b/src/pkg/os/os_test.go index 4d60333df7e..f9bacebf113 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