'When the command exits with a non-zero status, the protocol\'s
C{connectionLost} method is called with a L{Failure} wrapping an
exception which encapsulates that status.'

def test_nonZeroExitStatus(self):

    exitCode = 123
    signal = None
    exc = self._exitStatusTest('exit-status', pack('>L', exitCode))
    exc.trap(ProcessTerminated)
    self.assertEqual(exitCode, exc.value.exitCode)
    self.assertEqual(signal, exc.value.signal)
