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

tests/msg_queue_print: fix test on hw

This commit is contained in:
Francisco Molina 2021-06-04 09:50:19 +02:00
parent 5d7477fa5f
commit 0a3c9b694b
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8
2 changed files with 8 additions and 4 deletions

View File

@ -42,6 +42,6 @@ int main(void)
}
msg_queue_print();
printf("DONE");
puts("DONE");
return 0;
}

View File

@ -8,17 +8,21 @@
# @author Julian Holzwarth <julian.holzwarth@fu-berlin.de>
import os
import sys
from testrunner import run
def testfunc(child):
child.expect("No message queue")
child.expect("Message queue of thread 2")
child.expect(r"Message queue of thread \d+\r\n")
child.expect_exact('size: 8 (avail: 0)')
child.expect("Message queue of thread 2")
child.expect(r"Message queue of thread \d+\r\n")
child.expect_exact('size: 8 (avail: 8)')
child.expect_exact('type: 0x0000, content: 0 ((nil))')
if os.environ.get('BOARD') == 'native':
child.expect_exact('type: 0x0000, content: 0 ((nil))')
else:
child.expect(r'type: 0x0000, content: 0 \((0x)?0+\)')
child.expect_exact('type: 0x0001, content: 1 (0x1)')
child.expect_exact('type: 0x0002, content: 2 (0x2)')
child.expect_exact('type: 0x0003, content: 3 (0x3)')