class documentation

Test running processes.

Method getCommand Return the path of the shell command named commandName, looking at common locations.
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_childSignalHandling The disposition of signals which are ignored in the parent process is reset to the default behavior for the child process.
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 test_executionError Raise an error during execvpe to check error management.
Method test_normalTermination Undocumented
Method test_signalHUP 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...
Method test_signalINT 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...
Method test_signalKILL 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...
Method test_signalTERM 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...
Class Variable usePTY Undocumented
Method _testSignal Undocumented
def getCommand(self, commandName): (source)

Return the path of the shell command named commandName, looking at common locations.

def test_abnormalTermination(self): (source)

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.

def test_childSignalHandling(self): (source)

The disposition of signals which are ignored in the parent process is reset to the default behavior for the child process.

def test_errorInProcessEnded(self): (source)

The handler which reaps a process is removed when the process is reaped, even if the protocol's processEnded method raises an exception.

@skipIf(runtime.platform.isMacOSX(), 'Test is flaky from a Darwin bug. See #8840.')
def test_executionError(self): (source)

Raise an error during execvpe to check error management.

def test_normalTermination(self): (source)

Undocumented

def test_signalHUP(self): (source)

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.

def test_signalINT(self): (source)

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.

def test_signalKILL(self): (source)

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.

def test_signalTERM(self): (source)

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.

def _testSignal(self, sig): (source)

Undocumented