aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-07-24 14:54:26 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-07-24 14:54:26 +0000
commit40f413d3c97a7694703938cd031ce15912b29ff7 (patch)
tree67e9f3bdbefa23aba17e4b78ee92b91daa92197c /test
parentfa64f08fc1ad45d0984828695697f6abde7e8ffd (diff)
downloadChibiOS-40f413d3c97a7694703938cd031ce15912b29ff7.tar.gz
ChibiOS-40f413d3c97a7694703938cd031ce15912b29ff7.tar.bz2
ChibiOS-40f413d3c97a7694703938cd031ce15912b29ff7.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6025 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r--test/testbmk.c2
-rw-r--r--test/testdyn.c4
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");