mirror of
https://github.com/golang/go.git
synced 2025-11-02 01:30:55 +00:00
build: move package sources from src/pkg to src
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.
This commit is contained in:
parent
220a6de47e
commit
c007ce824d
2097 changed files with 0 additions and 0 deletions
24
src/net/cgo_unix_test.go
Normal file
24
src/net/cgo_unix_test.go
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2013 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build cgo,!netgo
|
||||
// +build darwin dragonfly freebsd linux netbsd openbsd
|
||||
|
||||
package net
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestCgoLookupIP(t *testing.T) {
|
||||
host := "localhost"
|
||||
_, err, ok := cgoLookupIP(host)
|
||||
if !ok {
|
||||
t.Errorf("cgoLookupIP must not be a placeholder")
|
||||
}
|
||||
if err != nil {
|
||||
t.Errorf("cgoLookupIP failed: %v", err)
|
||||
}
|
||||
if _, err := goLookupIP(host); err != nil {
|
||||
t.Errorf("goLookupIP failed: %v", err)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue