mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 03:25:35 +00:00
25 lines
531 B
Go
25 lines
531 B
Go
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
||
|
package winutil
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"golang.org/x/sys/windows"
|
||
|
)
|
||
|
|
||
|
func TestGetRoamingProfilePath(t *testing.T) {
|
||
|
token := windows.GetCurrentProcessToken()
|
||
|
computerName, userName, err := getComputerAndUserName(token, nil)
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
|
||
|
if _, err := getRoamingProfilePath(t.Logf, token, computerName, userName); err != nil {
|
||
|
t.Error(err)
|
||
|
}
|
||
|
|
||
|
// TODO(aaron): Flesh out better once can run tests under domain accounts.
|
||
|
}
|