test: use longer DMA sequence when playing it back repeatedly

The CPU has to keep up.
This commit is contained in:
Sebastien Bourdeauducq 2017-10-30 23:06:38 +08:00
parent 9bf189ca10
commit 20a5f095f8
1 changed files with 2 additions and 2 deletions

View File

@ -628,11 +628,11 @@ class DMATest(ExperimentCase):
def test_dma_playback_time(self): def test_dma_playback_time(self):
exp = self.create(_DMA) exp = self.create(_DMA)
count = 20000 count = 20000
exp.record() exp.record_many(40)
exp.playback_many(count) exp.playback_many(count)
dt = self.dataset_mgr.get("dma_playback_time") dt = self.dataset_mgr.get("dma_playback_time")
print("dt={}, dt/count={}".format(dt, dt/count)) print("dt={}, dt/count={}".format(dt, dt/count))
self.assertLess(dt/count, 3*us) self.assertLess(dt/count, 4.5*us)
def test_handle_invalidation(self): def test_handle_invalidation(self):
exp = self.create(_DMA) exp = self.create(_DMA)