Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
684e065d
Commit
684e065d
authored
May 04, 2011
by
Alex Brainman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: disable dnsmsg_test on windows
R=golang-dev, bradfitzwork CC=golang-dev
https://golang.org/cl/4466041
parent
37dca9d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
dnsmsg_test.go
src/pkg/net/dnsmsg_test.go
+7
-0
resolv_windows.go
src/pkg/net/resolv_windows.go
+4
-0
No files found.
src/pkg/net/dnsmsg_test.go
View file @
684e065d
...
...
@@ -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
)
...
...
src/pkg/net/resolv_windows.go
View file @
684e065d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment