返回 DeepSeek-Reasonix
hide_other_test.go
根目录 / internal / proc / hide_other_test.go
1 //go:build !windows
2
3 package proc
4
5 import (
6 "os/exec"
7 "testing"
8 )
9
10 func TestHideWindowIsNoOpOffWindows(t *testing.T) {
11 cmd := exec.Command("true")
12 HideWindow(cmd)
13 if cmd.SysProcAttr != nil {
14 t.Fatal("HideWindow should be a no-op off Windows, but set SysProcAttr")
15 }
16 }
17
17 lines GO