aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-03-15 20:02:37 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-03-15 20:02:37 +0000
commit093b17ed718bef6d6c1b941218edd67327884c87 (patch)
treed34572ba4e8fb01d0969f747d28b3ac764d8e8a3 /test
parent52e98077ee867e31189c43ad592cf97f386cac93 (diff)
downloadChibiOS-093b17ed718bef6d6c1b941218edd67327884c87.tar.gz
ChibiOS-093b17ed718bef6d6c1b941218edd67327884c87.tar.bz2
ChibiOS-093b17ed718bef6d6c1b941218edd67327884c87.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4041 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r--test/testmbox.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/testmbox.c b/test/testmbox.c
index 544bc29ae..9c0bc08fa 100644
--- a/test/testmbox.c
+++ b/test/testmbox.c
@@ -204,10 +204,10 @@ static void mbox1_execute(void) {
test_assert(39, msg1 == RDY_OK, "wrong wake-up message");
test_emit_token(msg2);
}
- test_assert_sequence(38, "ABCDE");
- test_assert_lock(39, chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
- test_assert_lock(40, chMBGetUsedCountI(&mb1) == 0, "still full");
- test_assert(41, mb1.mb_rdptr == mb1.mb_wrptr, "pointers not aligned");
+ test_assert_sequence(40, "ABCDE");
+ test_assert_lock(41, chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
+ test_assert_lock(42, chMBGetUsedCountI(&mb1) == 0, "still full");
+ test_assert(43, mb1.mb_rdptr == mb1.mb_wrptr, "pointers not aligned");
/*
* Testing reset.
@@ -217,10 +217,10 @@ static void mbox1_execute(void) {
/*
* Re-testing final conditions.
*/
- test_assert_lock(42, chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
- test_assert_lock(43, chMBGetUsedCountI(&mb1) == 0, "still full");
- test_assert_lock(44, mb1.mb_buffer == mb1.mb_wrptr, "write pointer not aligned to base");
- test_assert_lock(45, mb1.mb_buffer == mb1.mb_rdptr, "read pointer not aligned to base");
+ test_assert_lock(44, chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
+ test_assert_lock(45, chMBGetUsedCountI(&mb1) == 0, "still full");
+ test_assert_lock(46, mb1.mb_buffer == mb1.mb_wrptr, "write pointer not aligned to base");
+ test_assert_lock(47, mb1.mb_buffer == mb1.mb_rdptr, "read pointer not aligned to base");
}
ROMCONST struct testcase testmbox1 = {