Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: fixes for msg_send_receive #4036

Merged
merged 2 commits into from
Oct 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/msg_send_receive/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# name of your application
APPLICATION = msg_send_receive

USEMODULE += xtimer

include ../Makefile.tests_common

include $(RIOTBASE)/Makefile.include
Expand Down
7 changes: 5 additions & 2 deletions tests/msg_send_receive/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
*
* @}
*/
Expand All @@ -23,9 +24,10 @@

#include "cpu_conf.h"
#include "thread.h"
#include "xtimer.h"

#define THREAD1_STACKSIZE (THREAD_EXTRA_STACKSIZE_PRINTF)
#define THREAD2_STACKSIZE (THREAD_EXTRA_STACKSIZE_PRINTF)
#define THREAD1_STACKSIZE (THREAD_STACKSIZE_MAIN)
#define THREAD2_STACKSIZE (THREAD_STACKSIZE_MAIN)

#ifndef TEST_EXECUTION_NUM
#define TEST_EXECUTION_NUM (10)
Expand Down Expand Up @@ -56,6 +58,7 @@ static void *thread1(void *args)
success = 0;
break;
}
xtimer_usleep(200);
}

if (success) {
Expand Down