Home | History | Annotate | Download | only in test

Lines Matching full:itimer

390         self.itimer = None
395 if self.itimer is not None: # test_itimer_exc doesn't change this attr
396 # just ensure that itimer is stopped
397 signal.setitimer(self.itimer, 0)
430 # XXX I'm assuming -1 is an invalid itimer, but maybe some platform
439 self.itimer = signal.ITIMER_REAL
440 signal.setitimer(self.itimer, 1.0)
449 'itimer not reliable (does not mix well with threading) on some BSDs.')
451 self.itimer = signal.ITIMER_VIRTUAL
453 signal.setitimer(self.itimer, 0.3, 0.2)
459 if signal.getitimer(self.itimer) == (0.0, 0.0):
460 break # sig_vtalrm handler stopped this itimer
465 # virtual itimer should be (0.0, 0.0) now
466 self.assertEqual(signal.getitimer(self.itimer), (0.0, 0.0))
472 'itimer not reliable (does not mix well with threading) on freebsd6')
474 self.itimer = signal.ITIMER_PROF
476 signal.setitimer(self.itimer, 0.2, 0.2)
482 if signal.getitimer(self.itimer) == (0.0, 0.0):
483 break # sig_prof handler stopped this itimer
488 # profiling itimer should be (0.0, 0.0) now
489 self.assertEqual(signal.getitimer(self.itimer), (0.0, 0.0))