]> Cypherpunks repositories - gostls13.git/commitdiff
os: disable Hostname test on OpenBSD
authorJoel Sing <jsing@google.com>
Tue, 23 Aug 2011 03:24:16 +0000 (23:24 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 23 Aug 2011 03:24:16 +0000 (23:24 -0400)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4901054

src/pkg/os/os_test.go

index 4d60333df7e1a97b1ef8c7348adbc71eccbcc771..f9bacebf113b325fb7d3f0f9198fa2247a80b212 100644 (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