You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
349 B
19 lines
349 B
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package osrouter
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
)
|
|
|
|
func TestGetNetshPath(t *testing.T) {
|
|
ft := &firewallTweaker{
|
|
logf: t.Logf,
|
|
}
|
|
path := ft.getNetshPath()
|
|
if !filepath.IsAbs(path) {
|
|
t.Errorf("expected absolute path for netsh.exe: %q", path)
|
|
}
|
|
}
|
|
|