diff options
Diffstat (limited to 'test/testmbox.c')
-rw-r--r-- | test/testmbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/testmbox.c b/test/testmbox.c index b72fef2c1..b3ac17e01 100644 --- a/test/testmbox.c +++ b/test/testmbox.c @@ -105,7 +105,7 @@ static void mbox1_execute(void) { * Testing final conditions.
*/
test_assert(5, chMBGetFreeCountI(&mb1) == 0, "still empty");
- test_assert(6, chMBGetFullCountI(&mb1) == MB_SIZE, "not full");
+ test_assert(6, chMBGetUsedCountI(&mb1) == MB_SIZE, "not full");
test_assert(7, mb1.mb_rdptr == mb1.mb_wrptr, "pointers not aligned");
/*
@@ -138,7 +138,7 @@ static void mbox1_execute(void) { * Testing final conditions.
*/
test_assert(15, chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
- test_assert(16, chMBGetFullCountI(&mb1) == 0, "still full");
+ test_assert(16, chMBGetUsedCountI(&mb1) == 0, "still full");
test_assert(17, mb1.mb_rdptr == mb1.mb_wrptr, "pointers not aligned");
/*
@@ -150,7 +150,7 @@ static void mbox1_execute(void) { * Re-testing final conditions.
*/
test_assert(18, chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
- test_assert(19, chMBGetFullCountI(&mb1) == 0, "still full");
+ test_assert(19, chMBGetUsedCountI(&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");
}
|