~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/net/dnsmsg_test.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
import (
8
8
        "encoding/hex"
9
 
        "runtime"
10
9
        "testing"
11
10
)
12
11
 
13
12
func TestDNSParseSRVReply(t *testing.T) {
14
 
        if runtime.GOOS == "windows" {
15
 
                return
16
 
        }
17
13
        data, err := hex.DecodeString(dnsSRVReply)
18
14
        if err != nil {
19
15
                t.Fatal(err)
45
41
}
46
42
 
47
43
func TestDNSParseCorruptSRVReply(t *testing.T) {
48
 
        if runtime.GOOS == "windows" {
49
 
                return
50
 
        }
51
44
        data, err := hex.DecodeString(dnsSRVCorruptReply)
52
45
        if err != nil {
53
46
                t.Fatal(err)