'Check that a failed write prevented the process from getting to its
custom exit code.'

def _endProcess(self, reason, p):

    self.assertNotEqual(reason.exitCode, 42, ('process    reason    was    %r' % reason))
    self.assertEqual(p.output, '')
    return p.errput
