From: Joel Sing Date: Thu, 17 Nov 2011 14:53:07 +0000 (+1100) Subject: os: re-enable hostname test on openbsd X-Git-Tag: weekly.2011-11-18~18 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ea2c0cd88f830a1f8af9ee5f9a9cfb643f3cbd30;p=gostls13.git os: re-enable hostname test on openbsd Now that Sysctl() works, re-enable the hostname test. R=golang-dev, mikioh.mikioh CC=golang-dev https://golang.org/cl/5408042 --- diff --git a/src/pkg/os/os_test.go b/src/pkg/os/os_test.go index 1b6cb8028c..7041136ec9 100644 --- a/src/pkg/os/os_test.go +++ b/src/pkg/os/os_test.go @@ -942,11 +942,6 @@ func TestHostname(t *testing.T) { 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