Files
kandev/apps/backend/internal/launcher/process_group_unix_test.go
T
2026-06-20 19:40:15 +01:00

18 lines
329 B
Go

//go:build linux || darwin
package launcher
import (
"os/exec"
"testing"
)
func TestConfigureManagedProcessCreatesProcessGroup(t *testing.T) {
cmd := exec.Command("kandev")
configureManagedProcess(cmd)
if cmd.SysProcAttr == nil || !cmd.SysProcAttr.Setpgid {
t.Fatalf("configureManagedProcess should set Setpgid")
}
}