初始化
This commit is contained in:
16
platform/process_windows_test.go
Normal file
16
platform/process_windows_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
//go:build windows
|
||||
|
||||
package platform
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestConfigureHidden(t *testing.T) {
|
||||
c := exec.Command("cmd.exe", "/c", "exit", "0")
|
||||
configureHidden(c)
|
||||
if c.SysProcAttr == nil || !c.SysProcAttr.HideWindow || c.SysProcAttr.CreationFlags&0x08000000 == 0 {
|
||||
t.Fatalf("hidden process flags missing: %#v", c.SysProcAttr)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user