Test2::Harness::IPC::Process3pm
Base class for processes controlled by test2::harness::ipc.
Overview
All processes controlled by Test2::Harness::IPC should subclass this one.
Attributes
$int = $proc->exit
|
Exit value, if set. Otherwise |
|---|---|
$stamp = $proc->exit_time
|
Timestamp of the process exit, if set, otherwise |
$pid = $proc->pid
|
Pid of the process, if it has been started. |
$cat = $proc->category
|
Set at construction, |
Methods
- $opt->set_pid($pid)
-
Set the process id.
- $opt->set_exit($ipc, $exit, $time)
-
Set the process as complete.
$exitshould be the exit value.$timeshould be a timestamp.$ipcis an instance of Test2::Harness::IPC.
- $hashref = $opt->
spawn_params() -
Used when spawning the process, args go to
run_cmd()from Test2::Harness::Util::IPC.The base class throws an exception if this method is called.
Source
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.
Maintainers
- Chad Granum <[email protected]>
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.