twisted.test.test_process.PosixProcessBase(object)
class documentationtwisted.test.test_process
(View In Hierarchy)
Known subclasses: twisted.test.test_process.PosixProcessPTYTests, twisted.test.test_process.PosixProcessTests
Test running processes.
Method | getCommand | Return the path of the shell command named commandName ,
looking at common locations. |
Method | test_normalTermination | Undocumented |
Method | test_abnormalTermination | When a process terminates with a system exit code set to 1,
processEnded is called with a error.ProcessTerminated
error, the exitCode attribute reflecting the system exit
code. |
Method | test_signalHUP | No summary |
Method | test_signalINT | No summary |
Method | test_signalKILL | No summary |
Method | test_signalTERM | No summary |
Method | test_childSignalHandling | The disposition of signals which are ignored in the parent process is reset to the default behavior for the child process. |
Method | test_executionError | Raise an error during execvpe to check error management. |
Method | test_errorInProcessEnded | The handler which reaps a process is removed when the process is reaped,
even if the protocol's processEnded method raises an
exception. |
Method | _testSignal | Undocumented |
Return the path of the shell command named commandName
,
looking at common locations.
When a process terminates with a system exit code set to 1,
processEnded
is called with a error.ProcessTerminated
error, the exitCode
attribute reflecting the system exit
code.
Sending the SIGHUP signal to a running process interrupts it, and
processEnded
is called with a error.ProcessTerminated
instance with the exitCode
set to None
and the signal
attribute set to signal.SIGHUP
.
os.WTERMSIG
can also be used on the status
attribute to extract the signal value.
Sending the SIGINT signal to a running process interrupts it, and
processEnded
is called with a error.ProcessTerminated
instance with the exitCode
set to None
and the signal
attribute set to signal.SIGINT
.
os.WTERMSIG
can also be used on the status
attribute to extract the signal value.
Sending the SIGKILL signal to a running process interrupts it, and
processEnded
is called with a error.ProcessTerminated
instance with the exitCode
set to None
and the signal
attribute set to signal.SIGKILL
.
os.WTERMSIG
can also be used on the status
attribute to extract the signal value.
Sending the SIGTERM signal to a running process interrupts it, and
processEnded
is called with a error.ProcessTerminated
instance with the exitCode
set to None
and the signal
attribute set to signal.SIGTERM
.
os.WTERMSIG
can also be used on the status
attribute to extract the signal value.