tests/xtimer_now_irq: don't fail for 32bit timers
This commit is contained in:
parent
772b638d2a
commit
6bb765a362
@ -26,8 +26,11 @@
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
if (XTIMER_WIDTH == 32) {
|
||||||
|
puts("Nothing to do for 32 bit timers.\n");
|
||||||
|
}
|
||||||
|
else {
|
||||||
puts("xtimer_now_irq test application.\n");
|
puts("xtimer_now_irq test application.\n");
|
||||||
|
|
||||||
uint8_t count = TEST_COUNT;
|
uint8_t count = TEST_COUNT;
|
||||||
while (count) {
|
while (count) {
|
||||||
unsigned int state = irq_disable();
|
unsigned int state = irq_disable();
|
||||||
@ -42,6 +45,8 @@ int main(void)
|
|||||||
puts("OK");
|
puts("OK");
|
||||||
count --;
|
count --;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
puts("SUCCESS");
|
puts("SUCCESS");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,6 +15,9 @@ TIMEOUT = 20
|
|||||||
|
|
||||||
|
|
||||||
def testfunc(child):
|
def testfunc(child):
|
||||||
|
res = child.expect(['Nothing to do for 32 bit timers.\r\n',
|
||||||
|
'xtimer_now_irq test application.\r\n'])
|
||||||
|
if res == 1:
|
||||||
for _ in range(4):
|
for _ in range(4):
|
||||||
child.expect_exact("OK", timeout=TIMEOUT)
|
child.expect_exact("OK", timeout=TIMEOUT)
|
||||||
child.expect_exact("SUCCESS")
|
child.expect_exact("SUCCESS")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user