From 7d2486a57ad2f63c30d00d1d4302e82e10467633 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 3 Oct 2017 08:50:33 +0000 Subject: Mailboxes refactory for consistency. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10747 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/rt/configuration.xml | 36 +++++++++++------------ test/rt/source/test/test_sequence_009.c | 52 ++++++++++++++++----------------- 2 files changed, 44 insertions(+), 44 deletions(-) (limited to 'test/rt') diff --git a/test/rt/configuration.xml b/test/rt/configuration.xml index 162b85bd2..00ecd82a8 100644 --- a/test/rt/configuration.xml +++ b/test/rt/configuration.xml @@ -3216,28 +3216,28 @@ test_assert_lock(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");]] - - Filling the mailbox using chMBPost() and chMBPostAhead() once, no errors expected. + Filling the mailbox using chMBPostTimeout() and chMBPostAheadTimeout() once, no errors expected. @@ -3256,14 +3256,14 @@ test_assert_lock(mb1.rdptr == mb1.wrptr, "pointers not aligned");]]> - Emptying the mailbox using chMBFetch(), no errors expected. + Emptying the mailbox using chMBFetchTimeout(), no errors expected. - @@ -3411,9 +3411,9 @@ test_assert_sequence("ABCD", "wrong get sequence");]]> - @@ -3465,26 +3465,26 @@ unsigned i;]]> - Testing chMBPost(), chMBPostI(), chMBPostAhead() and chMBPostAheadI() timeout. + Testing chMBPostTimeout(), chMBPostI(), chMBPostAheadTimeout() and chMBPostAheadI() timeout. - - Testing chMBFetch() and chMBFetchI() timeout. + Testing chMBFetchTimeout() and chMBFetchI() timeout. - Test Steps * - [9.3.1] Filling the mailbox. - * - [9.3.2] Testing chMBPost(), chMBPostI(), chMBPostAhead() and - * chMBPostAheadI() timeout. + * - [9.3.2] Testing chMBPostTimeout(), chMBPostI(), + * chMBPostAheadTimeout() and chMBPostAheadI() timeout. * - [9.3.3] Resetting the mailbox. The mailbox is then returned in * active state. - * - [9.3.4] Testing chMBFetch() and chMBFetchI() timeout. + * - [9.3.4] Testing chMBFetchTimeout() and chMBFetchI() timeout. * . */ @@ -342,22 +342,22 @@ static void test_009_003_execute(void) { test_set_step(1); { for (i = 0; i < MB_SIZE; i++) { - msg1 = chMBPost(&mb1, 'B' + i, TIME_INFINITE); + msg1 = chMBPostTimeout(&mb1, 'B' + i, TIME_INFINITE); test_assert(msg1 == MSG_OK, "wrong wake-up message"); } } - /* [9.3.2] Testing chMBPost(), chMBPostI(), chMBPostAhead() and - chMBPostAheadI() timeout.*/ + /* [9.3.2] Testing chMBPostTimeout(), chMBPostI(), + chMBPostAheadTimeout() and chMBPostAheadI() timeout.*/ test_set_step(2); { - msg1 = chMBPost(&mb1, 'X', 1); + msg1 = chMBPostTimeout(&mb1, 'X', 1); test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message"); chSysLock(); msg1 = chMBPostI(&mb1, 'X'); chSysUnlock(); test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message"); - msg1 = chMBPostAhead(&mb1, 'X', 1); + msg1 = chMBPostAheadTimeout(&mb1, 'X', 1); test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message"); chSysLock(); msg1 = chMBPostAheadI(&mb1, 'X'); @@ -373,10 +373,10 @@ static void test_009_003_execute(void) { chMBResumeX(&mb1); } - /* [9.3.4] Testing chMBFetch() and chMBFetchI() timeout.*/ + /* [9.3.4] Testing chMBFetchTimeout() and chMBFetchI() timeout.*/ test_set_step(4); { - msg1 = chMBFetch(&mb1, &msg2, 1); + msg1 = chMBFetchTimeout(&mb1, &msg2, 1); test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message"); chSysLock(); msg1 = chMBFetchI(&mb1, &msg2); -- cgit v1.2.3