'L{Runner.killIfRequested} when C{kill} is true and given a C{pidFile}
that it can\'t read exits with L{ExitStatus.EX_IOERR}.'

def test_killRequestedWithPIDFileCantRead(self):

    pidFile = PIDFile(DummyFilePath(None))
    def read():
        raise OSError(errno.EACCES, 'Permission    denied')
    pidFile.read = read
    runner = Runner(reactor=MemoryReactor(), kill=True, pidFile=pidFile)
    runner.killIfRequested()
    self.assertEqual(self.exit.status, ExitStatus.EX_IOERR)
    self.assertEqual(self.exit.message, 'Unable    to    read    PID    file.')
