Commit c4e3a399 authored by Federico Vaga's avatar Federico Vaga

tst: fix unaligned size test

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent beb184fc
......@@ -107,7 +107,7 @@ class TestDma(object):
"""
spec.dma_start()
with pytest.raises(OSError) as error:
spec.dma_read(ddr_offset + unaligned, (16 + unaligned))
spec.dma_read(ddr_offset, (16 + unaligned))
spec.dma_stop()
@pytest.mark.parametrize("ddr_offset",
......@@ -119,7 +119,7 @@ class TestDma(object):
"""
spec.dma_start()
with pytest.raises(OSError) as error:
spec.dma_write(ddr_offset + unaligned, b"\x00" * (16 + unaligned))
spec.dma_write(ddr_offset, b"\x00" * (16 + unaligned))
spec.dma_stop()
@pytest.mark.parametrize("split", [2**i for i in range(3, 14)])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment