diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-04-11 09:23:49 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-04-11 09:23:49 +0000 |
commit | ca129dc5b437343cb35b38206363a9b5940971af (patch) | |
tree | cd9791a0ff49651d6917dcffb6ac03019bc6ab5d /test/nil/configuration.xml | |
parent | 7b2d689e16bc11ce37cb21308f8b80d3827d910c (diff) | |
download | ChibiOS-ca129dc5b437343cb35b38206363a9b5940971af.tar.gz ChibiOS-ca129dc5b437343cb35b38206363a9b5940971af.tar.bz2 ChibiOS-ca129dc5b437343cb35b38206363a9b5940971af.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10154 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/nil/configuration.xml')
-rw-r--r-- | test/nil/configuration.xml | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/test/nil/configuration.xml b/test/nil/configuration.xml index f6d00873f..710e9a3be 100644 --- a/test/nil/configuration.xml +++ b/test/nil/configuration.xml @@ -650,6 +650,23 @@ test_assert_lock(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");]] </step>
<step>
<description>
+ <value>Testing the behavior of API when the mailbox is in reset state then return in active state.</value>
+ </description>
+ <tags>
+ <value />
+ </tags>
+ <code>
+ <value><![CDATA[msg1 = chMBPost(&mb1, (msg_t)0, TIME_INFINITE);
+test_assert(msg1 == MSG_RESET, "not in reset state");
+msg1 = chMBPostAhead(&mb1, (msg_t)0, TIME_INFINITE);
+test_assert(msg1 == MSG_RESET, "not in reset state");
+msg1 = chMBFetch(&mb1, &msg2, TIME_INFINITE);
+test_assert(msg1 == MSG_RESET, "not in reset state");
+chMBResumeX(&mb1);]]></value>
+ </code>
+ </step>
+ <step>
+ <description>
<value>Filling the mailbox using chMBPost() and chMBPostAhead() once, no errors expected.</value>
</description>
<tags>
@@ -771,7 +788,8 @@ chSysUnlock(); test_assert_lock(chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty"); test_assert_lock(chMBGetUsedCountI(&mb1) == 0, "still full"); test_assert_lock(mb1.buffer == mb1.wrptr, "write pointer not aligned to base"); -test_assert_lock(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");]]></value>
+test_assert_lock(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");
+chMBResumeX(&mb1);]]></value>
</code>
</step>
<step>
@@ -922,7 +940,8 @@ test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message");]]></value> <value />
</tags>
<code>
- <value><![CDATA[chMBReset(&mb1);]]></value>
+ <value><![CDATA[chMBReset(&mb1);;
+chMBResumeX(&mb1);]]></value>
</code>
</step>
<step>
|