Documentation
¶
Overview ¶
Package testprocess owns subprocess lifetimes in integration test harnesses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
Cmd runs a command with cleanup of its process group on supported Unix hosts. Configure the embedded Cmd before Start; do not call its execution methods directly or override Cancel or SysProcAttr. Start and Wait must each be called at most once. Every successful Start must be followed by Wait.
func CommandContext ¶
CommandContext constructs a command whose descendants share its lifetime. On Unix, loss of the parent process also kills the process group. Descendants must not detach into another group. Other platforms retain exec semantics.
func (*Cmd) CombinedOutput ¶
CombinedOutput runs the command and returns its combined standard streams.