Esempio n. 1
0
 def test_breakpoint_r(self):
     group = ReplayProcessGroup(str(self.exename), self.rdbname)
     group.active.send(Message(100, 6, extra='set-breakpoint'))
     group.active.expect(42, 100, -43, -44, 'set-breakpoint')
     group.active.expect(ANSWER_READY, 1, Ellipsis)
     e = py.test.raises(Breakpoint, group.go_forward, 10, 'r')
     assert e.value.time == 7
     assert e.value.nums == [99]
     group._check_current_time(10)
Esempio n. 2
0
 def test_jump_in_time(self, target_times):
     group = ReplayProcessGroup(str(self.exename), self.rdbname)
     for target_time in target_times:
         group.jump_in_time(target_time)
         group._check_current_time(target_time)
Esempio n. 3
0
 def test_forward(self):
     group = ReplayProcessGroup(str(self.exename), self.rdbname)
     group.go_forward(100)
     assert group.get_current_time() == 10
     assert sorted(group.paused) == [1, 4, 6, 8, 9, 10]
     assert group._check_current_time(10)