tests/msg_queue_print: fix test on hw
This commit is contained in:
parent
5d7477fa5f
commit
0a3c9b694b
@ -42,6 +42,6 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
msg_queue_print();
|
msg_queue_print();
|
||||||
printf("DONE");
|
puts("DONE");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,17 +8,21 @@
|
|||||||
|
|
||||||
# @author Julian Holzwarth <julian.holzwarth@fu-berlin.de>
|
# @author Julian Holzwarth <julian.holzwarth@fu-berlin.de>
|
||||||
|
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
from testrunner import run
|
from testrunner import run
|
||||||
|
|
||||||
|
|
||||||
def testfunc(child):
|
def testfunc(child):
|
||||||
child.expect("No message queue")
|
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_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('size: 8 (avail: 8)')
|
||||||
|
if os.environ.get('BOARD') == 'native':
|
||||||
child.expect_exact('type: 0x0000, content: 0 ((nil))')
|
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: 0x0001, content: 1 (0x1)')
|
||||||
child.expect_exact('type: 0x0002, content: 2 (0x2)')
|
child.expect_exact('type: 0x0002, content: 2 (0x2)')
|
||||||
child.expect_exact('type: 0x0003, content: 3 (0x3)')
|
child.expect_exact('type: 0x0003, content: 3 (0x3)')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user