1Test2::Harness::IPC::PrUosceerssC(o3n)tributed Perl DocuTmeesntt2a:t:iHoanrness::IPC::Process(3)
2
3
4
6 Test2::Harness::IPC::Process - Base class for processes controlled by
7 Test2::Harness::IPC.
8
10 All processes controlled by Test2::Harness::IPC should subclass this
11 one.
12
14 $int = $proc->exit
15 Exit value, if set. Otherwise "undef".
16
17 $stamp = $proc->exit_time
18 Timestamp of the process exit, if set, otherwise "undef".
19
20 $pid = $proc->pid
21 Pid of the process, if it has been started.
22
23 $cat = $proc->category
24 Set at construction, 'default' if not provided.
25
27 $opt->set_pid($pid)
28 Set the process id.
29
30 $opt->set_exit($ipc, $exit, $time)
31 Set the process as complete. $exit should be the exit value. $time
32 should be a timestamp. $ipc is an instance of Test2::Harness::IPC.
33
34 $hashref = $opt->spawn_params()
35 Used when spawning the process, args go to run_cmd() from
36 Test2::Harness::Util::IPC.
37
38 The base class throws an exception if this method is called.
39
41 The source code repository for Test2-Harness can be found at
42 http://github.com/Test-More/Test2-Harness/.
43
45 Chad Granum <exodist@cpan.org>
46
48 Chad Granum <exodist@cpan.org>
49
51 Copyright 2020 Chad Granum <exodist7@gmail.com>.
52
53 This program is free software; you can redistribute it and/or modify it
54 under the same terms as Perl itself.
55
56 See http://dev.perl.org/licenses/
57
58
59
60perl v5.38.0 2023-10-04 Test2::Harness::IPC::Process(3)