Lines Matching refs:proc
28 def kill_on_error(proc): argument
30 with proc:
32 yield proc
34 proc.kill()
92 for proc in processes:
93 proc.wait()
103 proc = self.new_sleep_process()
104 wait_func(proc.pid)
106 proc.wait()
137 proc = self.subprocess(code, str(wr), pass_fds=[wr])
138 with kill_on_error(proc):
142 self.assertEqual(proc.wait(), 0)
174 proc = self.subprocess(code, str(rd), pass_fds=[rd])
175 with kill_on_error(proc):
180 self.assertEqual(proc.wait(), 0)
216 proc = self.subprocess(code, str(fd), pass_fds=[fd])
217 with kill_on_error(proc):
221 self.assertEqual(proc.wait(), 0)
266 proc = self.subprocess(code, str(fd), pass_fds=[fd])
267 with kill_on_error(proc):
274 self.assertEqual(proc.wait(), 0)
304 proc = self.subprocess(code)
305 with kill_on_error(proc):
308 self.assertEqual(proc.wait(), 0)
340 proc = self.subprocess(code)
341 with kill_on_error(proc):
343 self.assertEqual(proc.wait(), 0)
406 proc = self.subprocess(code)
407 with kill_on_error(proc):
411 self.assertEqual(proc.wait(), 0)
496 proc = self.subprocess(code)
497 with kill_on_error(proc):
516 proc.wait()