1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #15173 from fjmolinas/pr_tests_malloc_timeout

tests/malloc: increase timeout, for larger BOARDs
This commit is contained in:
Alexandre Abadie 2020-10-07 21:55:49 +02:00 committed by GitHub
commit 970ae7e949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,10 @@
import sys
from testrunner import run
# For BOARD's with large amount of RAM allocating all chunks takes longer
# than 10s
ALLOCATION_TIMEOUT = 20
def testfunc(child):
child.expect(r'CHUNK_SIZE: (\d+)\r\n')
@ -19,7 +23,8 @@ def testfunc(child):
for _ in range(number_of_tests):
child.expect(r"Allocated {} Bytes at 0x[a-z0-9]+, total [a-z0-9]+\r\n"
.format(chunk_size))
child.expect(r'Allocations count: (\d+)\r\n')
child.expect(r'Allocations count: (\d+)\r\n',
timeout=ALLOCATION_TIMEOUT)
allocations = int(child.match.group(1))
assert allocations > 0
if initial_allocations == 0: