From 40f413d3c97a7694703938cd031ce15912b29ff7 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 24 Jul 2013 14:54:26 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6025 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testbmk.c | 2 +- test/testdyn.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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"); -- cgit v1.2.3