| 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 |