]> Cypherpunks repositories - gostls13.git/commitdiff
net: disable dnsmsg_test on windows
authorAlex Brainman <alex.brainman@gmail.com>
Wed, 4 May 2011 03:08:36 +0000 (13:08 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Wed, 4 May 2011 03:08:36 +0000 (13:08 +1000)
R=golang-dev, bradfitzwork
CC=golang-dev
https://golang.org/cl/4466041

src/pkg/net/dnsmsg_test.go
src/pkg/net/resolv_windows.go

index 06152a01a23eff0a50319ee86b8bb4beab9f3aba..20c9f02b0b4d33576919b79635069515f762ac2c 100644 (file)
@@ -6,10 +6,14 @@ package net
 
 import (
        "encoding/hex"
+       "runtime"
        "testing"
 )
 
 func TestDNSParseSRVReply(t *testing.T) {
+       if runtime.GOOS == "windows" {
+               return
+       }
        data, err := hex.DecodeString(dnsSRVReply)
        if err != nil {
                t.Fatal(err)
@@ -41,6 +45,9 @@ func TestDNSParseSRVReply(t *testing.T) {
 }
 
 func TestDNSParseCorruptSRVReply(t *testing.T) {
+       if runtime.GOOS == "windows" {
+               return
+       }
        data, err := hex.DecodeString(dnsSRVCorruptReply)
        if err != nil {
                t.Fatal(err)
index 3506ea177f29ace1a1afd60613bc98647467e4f1..f7c3f51bef1b0691435d6d71d9aa6f62f2593d29 100644 (file)
@@ -113,6 +113,10 @@ func reverseaddr(addr string) (arpa string, err os.Error) {
        panic("unimplemented")
 }
 
+func answer(name, server string, dns *dnsMsg, qtype uint16) (cname string, addrs []dnsRR, err os.Error) {
+       panic("unimplemented")
+}
+
 // DNSError represents a DNS lookup error.
 type DNSError struct {
        Error     string // description of the error