mirror of
https://github.com/ollama/ollama.git
synced 2026-07-07 16:21:53 +00:00
16 lines
340 B
Go
16 lines
340 B
Go
//go:build !windows
|
|
|
|
package tools
|
|
|
|
import (
|
|
"os/exec"
|
|
"testing"
|
|
)
|
|
|
|
func TestConfigureBashCommandSetsProcessGroup(t *testing.T) {
|
|
cmd := exec.Command("bash", "-c", "true")
|
|
configureBashCommand(cmd)
|
|
if cmd.SysProcAttr == nil || !cmd.SysProcAttr.Setpgid {
|
|
t.Fatalf("configureBashCommand should start bash in a new process group")
|
|
}
|
|
}
|