mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 19:45:35 +00:00
21 lines
567 B
Go
21 lines
567 B
Go
|
// Copyright (c) 2020 Tailscale Inc & 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,darwin
|
||
|
|
||
|
package interfaces
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestLikelyHomeRouterIPSyscallExec(t *testing.T) {
|
||
|
syscallIP, syscallOK := likelyHomeRouterIPDarwinSyscall()
|
||
|
netstatIP, netstatOK := likelyHomeRouterIPDarwinExec()
|
||
|
if syscallOK != netstatOK || syscallIP != netstatIP {
|
||
|
t.Errorf("syscall() = %v, %v, netstat = %v, %v",
|
||
|
syscallIP, syscallOK,
|
||
|
netstatIP, netstatOK,
|
||
|
)
|
||
|
}
|
||
|
}
|