mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
tests: msg_send_receive: add a delay
Otherwise the pre-condition (receiver is already in RX block) is not met.
This commit is contained in:
parent
de74a64e8a
commit
c3f7925c1c
@ -1,5 +1,8 @@
|
||||
# name of your application
|
||||
APPLICATION = msg_send_receive
|
||||
|
||||
USEMODULE += xtimer
|
||||
|
||||
include ../Makefile.tests_common
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
*
|
||||
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
|
||||
* @author René Kijewski <rene.kijewski@fu-berlin.de>
|
||||
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
@ -23,6 +24,7 @@
|
||||
|
||||
#include "cpu_conf.h"
|
||||
#include "thread.h"
|
||||
#include "xtimer.h"
|
||||
|
||||
#define THREAD1_STACKSIZE (THREAD_STACKSIZE_MAIN)
|
||||
#define THREAD2_STACKSIZE (THREAD_STACKSIZE_MAIN)
|
||||
@ -56,6 +58,7 @@ static void *thread1(void *args)
|
||||
success = 0;
|
||||
break;
|
||||
}
|
||||
xtimer_usleep(200);
|
||||
}
|
||||
|
||||
if (success) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user