]> Cypherpunks repositories - gostls13.git/commitdiff
os: re-enable hostname test on openbsd
authorJoel Sing <jsing@google.com>
Thu, 17 Nov 2011 14:53:07 +0000 (01:53 +1100)
committerJoel Sing <jsing@google.com>
Thu, 17 Nov 2011 14:53:07 +0000 (01:53 +1100)
Now that Sysctl() works, re-enable the hostname test.

R=golang-dev, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5408042

src/pkg/os/os_test.go

index 1b6cb8028c2532e3ecf0597b8db6ef9f76abaf75..7041136ec9eeb144d2903322c7d95b955124a7fa 100644 (file)
@@ -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