17 lines
410 B
Go
17 lines
410 B
Go
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
|
|
|
package fileplayback
|
|
|
|
import (
|
|
"os/exec"
|
|
"testing"
|
|
)
|
|
|
|
func TestConfigureProcessGroupCreatesSeparateGroup(t *testing.T) {
|
|
cmd := exec.Command("true")
|
|
configureProcessGroup(cmd)
|
|
if cmd.SysProcAttr == nil || !cmd.SysProcAttr.Setpgid {
|
|
t.Fatal("ffmpeg process was not configured to lead its own process group")
|
|
}
|
|
}
|