aboutsummaryrefslogtreecommitdiffstats
path: root/test/rt/testsem.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rt/testsem.c')
-rw-r--r--test/rt/testsem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rt/testsem.c b/test/rt/testsem.c
index cb7f13bc2..87e9b187f 100644
--- a/test/rt/testsem.c
+++ b/test/rt/testsem.c
@@ -49,7 +49,7 @@
#if CH_CFG_USE_SEMAPHORES || defined(__DOXYGEN__)
-#define ALLOWED_DELAY MS2ST(5)
+#define ALLOWED_DELAY MS2ST(2)
/*
* Note, the static initializers are not really required because the
@@ -170,10 +170,10 @@ static void sem2_execute(void) {
* Testing timeout condition.
*/
test_wait_tick();
- target_time = chVTGetSystemTime() + MS2ST(5 * 500);
+ target_time = chVTGetSystemTime() + MS2ST(5 * 50);
for (i = 0; i < 5; i++) {
test_emit_token('A' + i);
- msg = chSemWaitTimeout(&sem1, MS2ST(500));
+ msg = chSemWaitTimeout(&sem1, MS2ST(50));
test_assert(7, msg == MSG_TIMEOUT, "wrong wake-up message");
test_assert(8, queue_isempty(&sem1.s_queue), "queue not empty");
test_assert(9, sem1.s_cnt == 0, "counter not zero");