]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix windows build
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 13 Aug 2013 20:44:57 +0000 (00:44 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 13 Aug 2013 20:44:57 +0000 (00:44 +0400)
Windows builders say:
pkg\net\dnsclient_unix_test.go:24: undefined: dnsConfig
pkg\net\dnsclient_unix_test.go:25: undefined: exchange

R=golang-dev
CC=golang-dev
https://golang.org/cl/12889043

src/pkg/net/dnsclient_unix_test.go

index fe51f229e593551c49519b4d9c335a087a8f2979..97e55489c125c5e60fb0fe347e8c94310eb765df 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build darwin freebsd linux netbsd openbsd
+
 package net
 
 import (
@@ -10,9 +12,6 @@ import (
 )
 
 func TestTCPLookup(t *testing.T) {
-       if runtime.GOOS == "windows" || runtime.GOOS == "plan9" {
-               t.Skip("skipping unix dns test")
-       }
        if testing.Short() || !*testExternal {
                t.Skip("skipping test to avoid external network")
        }