summaryrefslogtreecommitdiffhomepage
path: root/util/winutil/process_windows_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'util/winutil/process_windows_test.go')
-rw-r--r--util/winutil/process_windows_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/util/winutil/process_windows_test.go b/util/winutil/process_windows_test.go
new file mode 100644
index 000000000..dc314db2c
--- /dev/null
+++ b/util/winutil/process_windows_test.go
@@ -0,0 +1,17 @@
+// Copyright (c) Tailscale Inc & AUTHORS
+// SPDX-License-Identifier: BSD-3-Clause
+
+package winutil
+
+import (
+ "strings"
+ "testing"
+)
+
+func TestMitigateSelf(t *testing.T) {
+ output := strings.TrimSpace(runTestProg(t, "testprocessattributes", "MitigateSelf"))
+ want := "OK"
+ if output != want {
+ t.Errorf("%s\n", strings.TrimPrefix(output, "error: "))
+ }
+}