aboutsummaryrefslogtreecommitdiffstats
path: root/test/nil/test_root.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/nil/test_root.c')
-rw-r--r--test/nil/test_root.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/nil/test_root.c b/test/nil/test_root.c
index 49c1d7862..a8efacba7 100644
--- a/test/nil/test_root.c
+++ b/test/nil/test_root.c
@@ -51,8 +51,7 @@ thread_reference_t gtr1;
*/
THD_WORKING_AREA(wa_test_support, 128);
THD_FUNCTION(test_support, arg) {
-
- (void)arg;
+ thread_t *tp = (thread_t *)arg;
/* Initializing global resources.*/
chSemObjectInit(&gsem1, 0);
@@ -65,10 +64,11 @@ THD_FUNCTION(test_support, arg) {
chSemSignalI(&gsem1);
chSemResetI(&gsem2, 0);
chThdResumeI(&gtr1, MSG_OK);
+ chEvtSignalI(tp, 0x55);
chSchRescheduleS();
chSysUnlock();
- chThdSleepMilliseconds(500);
+ chThdSleepMilliseconds(250);
}
}