1 // Copyright 2013 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
6 // +build darwin dragonfly freebsd linux netbsd openbsd
12 func TestCgoLookupIP(t
*testing
.T
) {
14 _
, err
, ok
:= cgoLookupIP(host
)
16 t
.Errorf("cgoLookupIP must not be a placeholder")
19 t
.Errorf("cgoLookupIP failed: %v", err
)
21 if _
, err
:= goLookupIP(host
); err
!= nil {
22 t
.Errorf("goLookupIP failed: %v", err
)