diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-10-07 13:32:58 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-10-07 13:32:58 +0000 |
commit | 38cc48d575a6232cfd440d97711f89f5f531422d (patch) | |
tree | 3bfa6f3d839a02c88f94429c9c0338daa2220291 /test/testmbox.c | |
parent | c2efc1ebe91a1496b3046d44898b3384df24fc60 (diff) | |
download | ChibiOS-38cc48d575a6232cfd440d97711f89f5f531422d.tar.gz ChibiOS-38cc48d575a6232cfd440d97711f89f5f531422d.tar.bz2 ChibiOS-38cc48d575a6232cfd440d97711f89f5f531422d.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2237 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testmbox.c')
-rw-r--r-- | test/testmbox.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/testmbox.c b/test/testmbox.c index 60fa5cb44..b72fef2c1 100644 --- a/test/testmbox.c +++ b/test/testmbox.c @@ -83,7 +83,7 @@ static void mbox1_execute(void) { /*
* Testing initial space.
*/
- test_assert(1, chMBGetEmptyI(&mb1) == MB_SIZE, "wrong size");
+ test_assert(1, chMBGetFreeCountI(&mb1) == MB_SIZE, "wrong size");
/*
* Testing enqueuing and backward circularity.
@@ -104,8 +104,8 @@ static void mbox1_execute(void) { /*
* Testing final conditions.
*/
- test_assert(5, chMBGetEmptyI(&mb1) == 0, "still empty");
- test_assert(6, chMBGetFullI(&mb1) == MB_SIZE, "not full");
+ test_assert(5, chMBGetFreeCountI(&mb1) == 0, "still empty");
+ test_assert(6, chMBGetFullCountI(&mb1) == MB_SIZE, "not full");
test_assert(7, mb1.mb_rdptr == mb1.mb_wrptr, "pointers not aligned");
/*
@@ -137,8 +137,8 @@ static void mbox1_execute(void) { /*
* Testing final conditions.
*/
- test_assert(15, chMBGetEmptyI(&mb1) == MB_SIZE, "not empty");
- test_assert(16, chMBGetFullI(&mb1) == 0, "still full");
+ test_assert(15, chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
+ test_assert(16, chMBGetFullCountI(&mb1) == 0, "still full");
test_assert(17, mb1.mb_rdptr == mb1.mb_wrptr, "pointers not aligned");
/*
@@ -149,8 +149,8 @@ static void mbox1_execute(void) { /*
* Re-testing final conditions.
*/
- test_assert(18, chMBGetEmptyI(&mb1) == MB_SIZE, "not empty");
- test_assert(19, chMBGetFullI(&mb1) == 0, "still full");
+ test_assert(18, chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
+ test_assert(19, chMBGetFullCountI(&mb1) == 0, "still full");
test_assert(20, mb1.mb_buffer == mb1.mb_wrptr, "write pointer not aligned to base");
test_assert(21, mb1.mb_buffer == mb1.mb_rdptr, "read pointer not aligned to base");
}
|