Commit 684e065d authored by Alex Brainman's avatar Alex Brainman

net: disable dnsmsg_test on windows

R=golang-dev, bradfitzwork
CC=golang-dev
https://golang.org/cl/4466041
parent 37dca9d4
...@@ -6,10 +6,14 @@ package net ...@@ -6,10 +6,14 @@ package net
import ( import (
"encoding/hex" "encoding/hex"
"runtime"
"testing" "testing"
) )
func TestDNSParseSRVReply(t *testing.T) { func TestDNSParseSRVReply(t *testing.T) {
if runtime.GOOS == "windows" {
return
}
data, err := hex.DecodeString(dnsSRVReply) data, err := hex.DecodeString(dnsSRVReply)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
...@@ -41,6 +45,9 @@ func TestDNSParseSRVReply(t *testing.T) { ...@@ -41,6 +45,9 @@ func TestDNSParseSRVReply(t *testing.T) {
} }
func TestDNSParseCorruptSRVReply(t *testing.T) { func TestDNSParseCorruptSRVReply(t *testing.T) {
if runtime.GOOS == "windows" {
return
}
data, err := hex.DecodeString(dnsSRVCorruptReply) data, err := hex.DecodeString(dnsSRVCorruptReply)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
......
...@@ -113,6 +113,10 @@ func reverseaddr(addr string) (arpa string, err os.Error) { ...@@ -113,6 +113,10 @@ func reverseaddr(addr string) (arpa string, err os.Error) {
panic("unimplemented") 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. // DNSError represents a DNS lookup error.
type DNSError struct { type DNSError struct {
Error string // description of the error Error string // description of the error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment