tests/xtimer_msg: check result of thread_create()
This commit is contained in:
parent
b65c6abad5
commit
6f3f2b9b52
@ -28,6 +28,8 @@
|
||||
#include "thread.h"
|
||||
#include "msg.h"
|
||||
|
||||
#include "test_utils/expect.h"
|
||||
|
||||
char timer_stack[THREAD_STACKSIZE_DEFAULT];
|
||||
char timer_stack_local[THREAD_STACKSIZE_DEFAULT];
|
||||
|
||||
@ -103,6 +105,8 @@ int main(void)
|
||||
NULL,
|
||||
"timer");
|
||||
|
||||
expect(pid_is_valid(pid));
|
||||
|
||||
puts("sending 1st msg");
|
||||
m.content.ptr = &msg_a;
|
||||
msg_try_send(&m, pid);
|
||||
@ -120,6 +124,8 @@ int main(void)
|
||||
NULL,
|
||||
"timer local");
|
||||
|
||||
expect(pid_is_valid(pid2));
|
||||
|
||||
while (1) {
|
||||
xtimer_sleep(1);
|
||||
msg_try_send(&m, pid2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user