diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/testbmk.c | 2 | ||||
-rw-r--r-- | test/testdyn.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/testbmk.c b/test/testbmk.c index ce8b8d51e..293dbd607 100644 --- a/test/testbmk.c +++ b/test/testbmk.c @@ -207,7 +207,7 @@ msg_t thread4(void *p) { (void)p;
chSysLock();
do {
- chSchGoSleepS(THD_STATE_SUSPENDED);
+ chSchGoSleepS(CH_STATE_SUSPENDED);
msg = self->p_u.rdymsg;
} while (msg == RDY_OK);
chSysUnlock();
diff --git a/test/testdyn.c b/test/testdyn.c index 31fd0c005..7ba281e31 100644 --- a/test/testdyn.c +++ b/test/testdyn.c @@ -224,11 +224,11 @@ static void dyn3_execute(void) { /* Detach and let the thread execute and terminate.*/
chThdRelease(tp);
test_assert(6, tp->p_refs == 0, "detach failure");
- test_assert(7, tp->p_state == THD_STATE_READY, "invalid state");
+ test_assert(7, tp->p_state == CH_STATE_READY, "invalid state");
test_assert(8, regfind(tp), "thread disappeared");
test_assert(9, regfind(tp), "thread disappeared");
chThdSleepMilliseconds(50); /* The thread just terminates. */
- test_assert(10, tp->p_state == THD_STATE_FINAL, "invalid state");
+ test_assert(10, tp->p_state == CH_STATE_FINAL, "invalid state");
/* Clearing the zombie by scanning the registry.*/
test_assert(11, regfind(tp), "thread disappeared");
|