1
0
mirror of https://github.com/golang/go synced 2024-11-24 09:10:24 -07:00

net: disable dnsmsg_test on windows

R=golang-dev, bradfitzwork
CC=golang-dev
https://golang.org/cl/4466041
This commit is contained in:
Alex Brainman 2011-05-04 13:08:36 +10:00
parent 37dca9d417
commit 684e065d05
2 changed files with 11 additions and 0 deletions

View 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)

View 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