aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-08 18:16:38 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-08 18:16:38 +0000
commitf407e4a84fcf2cf3bb003ed36f80ec136f8683c2 (patch)
tree4320f476744a99f1814e4ad5007e8fc87e8467ff /test
parent38cc48d575a6232cfd440d97711f89f5f531422d (diff)
downloadChibiOS-f407e4a84fcf2cf3bb003ed36f80ec136f8683c2.tar.gz
ChibiOS-f407e4a84fcf2cf3bb003ed36f80ec136f8683c2.tar.bz2
ChibiOS-f407e4a84fcf2cf3bb003ed36f80ec136f8683c2.zip
HAL improvements, mailboxes macro name changed.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2238 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r--test/testmbox.c6
-rw-r--r--test/testsem.c3
2 files changed, 4 insertions, 5 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");
}
diff --git a/test/testsem.c b/test/testsem.c
index f87187ac8..85535ed0a 100644
--- a/test/testsem.c
+++ b/test/testsem.c
@@ -42,7 +42,6 @@
* - @subpage test_sem_001
* - @subpage test_sem_002
* - @subpage test_sem_003
- * - @subpage test_sem_004
* .
* @file testsem.c
* @brief Semaphores test source file
@@ -232,7 +231,7 @@ ROMCONST struct testcase testsem3 = {
#endif /* CH_USE_SEMSW */
/**
- * @page test_sem_004 Binary wait and signal
+ * @page test_sem_004 Binary Wait and Signal
*
* <h2>Description</h2>
* This test case tests the binary semaphores functionality. The test both