diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-16 10:07:00 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-16 10:07:00 +0000 |
commit | cf204e72ea5fd6e4be8b3295cb148fde5fdd47d2 (patch) | |
tree | 5aae4b9a6c78c8f14c2a6ca8cd6446f42b3b29bd /test/rt/testmbox.c | |
parent | 641f2c372605cf405f0dda8536b45a78e0e5e2e2 (diff) | |
download | ChibiOS-cf204e72ea5fd6e4be8b3295cb148fde5fdd47d2.tar.gz ChibiOS-cf204e72ea5fd6e4be8b3295cb148fde5fdd47d2.tar.bz2 ChibiOS-cf204e72ea5fd6e4be8b3295cb148fde5fdd47d2.zip |
Tree reorganization.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8900 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/rt/testmbox.c')
-rw-r--r-- | test/rt/testmbox.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/rt/testmbox.c b/test/rt/testmbox.c index 901038ceb..9795dc9a0 100644 --- a/test/rt/testmbox.c +++ b/test/rt/testmbox.c @@ -113,7 +113,7 @@ static void mbox1_execute(void) { */
test_assert_lock(8, chMBGetFreeCountI(&mb1) == 0, "still empty");
test_assert_lock(9, chMBGetUsedCountI(&mb1) == MB_SIZE, "not full");
- test_assert_lock(10, mb1.mb_rdptr == mb1.mb_wrptr, "pointers not aligned");
+ test_assert_lock(10, mb1.rdptr == mb1.wrptr, "pointers not aligned");
/*
* Testing dequeuing.
@@ -132,8 +132,8 @@ static void mbox1_execute(void) { test_assert(13, msg1 == MSG_OK, "wrong wake-up message");
msg1 = chMBFetch(&mb1, &msg2, TIME_INFINITE);
test_assert(14, msg1 == MSG_OK, "wrong wake-up message");
- test_assert(15, mb1.mb_buffer == mb1.mb_wrptr, "write pointer not aligned to base");
- test_assert(16, mb1.mb_buffer == mb1.mb_rdptr, "read pointer not aligned to base");
+ test_assert(15, mb1.buffer == mb1.wrptr, "write pointer not aligned to base");
+ test_assert(16, mb1.buffer == mb1.rdptr, "read pointer not aligned to base");
/*
* Testing fetch timeout.
@@ -150,7 +150,7 @@ static void mbox1_execute(void) { */
test_assert_lock(19, chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
test_assert_lock(20, chMBGetUsedCountI(&mb1) == 0, "still full");
- test_assert_lock(21, mb1.mb_rdptr == mb1.mb_wrptr, "pointers not aligned");
+ test_assert_lock(21, mb1.rdptr == mb1.wrptr, "pointers not aligned");
/*
* Testing I-Class.
@@ -167,7 +167,7 @@ static void mbox1_execute(void) { msg1 = chMBPostI(&mb1, 'E');
chSysUnlock();
test_assert(26, msg1 == MSG_OK, "wrong wake-up message");
- test_assert(27, mb1.mb_rdptr == mb1.mb_wrptr, "pointers not aligned");
+ test_assert(27, mb1.rdptr == mb1.wrptr, "pointers not aligned");
for (i = 0; i < MB_SIZE; i++) {
chSysLock();
msg1 = chMBFetchI(&mb1, &msg2);
@@ -178,7 +178,7 @@ static void mbox1_execute(void) { test_assert_sequence(29, "ABCDE");
test_assert_lock(30, chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
test_assert_lock(31, chMBGetUsedCountI(&mb1) == 0, "still full");
- test_assert(32, mb1.mb_rdptr == mb1.mb_wrptr, "pointers not aligned");
+ test_assert(32, mb1.rdptr == mb1.wrptr, "pointers not aligned");
chSysLock();
msg1 = chMBPostAheadI(&mb1, 'E');
@@ -192,7 +192,7 @@ static void mbox1_execute(void) { msg1 = chMBPostAheadI(&mb1, 'A');
chSysUnlock();
test_assert(37, msg1 == MSG_OK, "wrong wake-up message");
- test_assert(38, mb1.mb_rdptr == mb1.mb_wrptr, "pointers not aligned");
+ test_assert(38, mb1.rdptr == mb1.wrptr, "pointers not aligned");
for (i = 0; i < MB_SIZE; i++) {
chSysLock();
msg1 = chMBFetchI(&mb1, &msg2);
@@ -203,7 +203,7 @@ static void mbox1_execute(void) { 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");
+ test_assert(43, mb1.rdptr == mb1.wrptr, "pointers not aligned");
/*
* Testing reset.
@@ -215,8 +215,8 @@ static void mbox1_execute(void) { */
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");
+ test_assert_lock(46, mb1.buffer == mb1.wrptr, "write pointer not aligned to base");
+ test_assert_lock(47, mb1.buffer == mb1.rdptr, "read pointer not aligned to base");
}
ROMCONST struct testcase testmbox1 = {
|