diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-24 12:16:46 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-24 12:16:46 +0000 |
commit | 99b4f26a6513bf2ab68a10165d786f2dbd7ccc50 (patch) | |
tree | e7a146d97723502b37b79587d82c3258ba096eca /test/rt | |
parent | 2b8e64aada976519f7a6d7f6c84b2eb7a6b2b779 (diff) | |
download | ChibiOS-99b4f26a6513bf2ab68a10165d786f2dbd7ccc50.tar.gz ChibiOS-99b4f26a6513bf2ab68a10165d786f2dbd7ccc50.tar.bz2 ChibiOS-99b4f26a6513bf2ab68a10165d786f2dbd7ccc50.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10893 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/rt')
-rw-r--r-- | test/rt/configuration.xml | 19 | ||||
-rw-r--r-- | test/rt/source/test/rt_test_root.c | 2 |
2 files changed, 12 insertions, 9 deletions
diff --git a/test/rt/configuration.xml b/test/rt/configuration.xml index 7a39164d0..c25e56405 100644 --- a/test/rt/configuration.xml +++ b/test/rt/configuration.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?>
<SPC5-Config version="1.0.0">
<application name="ChibiOS/RT Test Suite" version="1.0.0" standalone="true" locked="false">
- <description>ChibiOS/RT Test Suite.</description>
+ <description>Test Specification for ChibiOS/RT.</description>
<component id="org.chibios.spc5.components.portable.generic_startup">
<component id="org.chibios.spc5.components.portable.chibios_unitary_tests_engine" />
</component>
@@ -9,6 +9,9 @@ <instance locked="false" id="org.chibios.spc5.components.portable.generic_startup" />
<instance locked="false" id="org.chibios.spc5.components.portable.chibios_unitary_tests_engine">
<description>
+ <brief>
+ <value>ChibiOS/RT Test Suite.</value>
+ </brief>
<copyright>
<value><![CDATA[/* ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio @@ -1293,7 +1296,7 @@ for (i = 0; i < 5; i++) { test_assert(sem1.cnt == 0, "counter not zero"); } test_assert_sequence("ABCDE", "invalid sequence"); -test_assert_time_window(target_time,
+test_assert_time_window(target_time, chTimeAddX(target_time, ALLOWED_DELAY), "out of time window");]]></value>
</code>
@@ -1835,7 +1838,7 @@ test_assert_sequence("ABC", "invalid sequence");]]></value> <value />
</tags>
<code>
- <value><![CDATA[test_assert_time_window(chTimeAddX(time, TIME_MS2I(100)),
+ <value><![CDATA[test_assert_time_window(chTimeAddX(time, TIME_MS2I(100)), chTimeAddX(time, TIME_MS2I(100) + ALLOWED_DELAY), "out of time window");]]></value>
</code>
@@ -1901,7 +1904,7 @@ test_assert_sequence("ABCDE", "invalid sequence");]]></value> <value />
</tags>
<code>
- <value><![CDATA[test_assert_time_window(chTimeAddX(time, TIME_MS2I(110)),
+ <value><![CDATA[test_assert_time_window(chTimeAddX(time, TIME_MS2I(110)), chTimeAddX(time, TIME_MS2I(110) + ALLOWED_DELAY), "out of time window");]]></value>
</code>
@@ -2821,7 +2824,7 @@ threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriorityX() - 1, </tags>
<code>
<value><![CDATA[m = chEvtWaitOne(ALL_EVENTS); -test_assert_time_window(target_time,
+test_assert_time_window(target_time, chTimeAddX(target_time, ALLOWED_DELAY), "out of time window"); test_assert(m == 1, "event flag error"); @@ -2902,7 +2905,7 @@ threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriorityX() - 1, </tags>
<code>
<value><![CDATA[m = chEvtWaitAny(ALL_EVENTS); -test_assert_time_window(target_time,
+test_assert_time_window(target_time, chTimeAddX(target_time, ALLOWED_DELAY), "out of time window"); test_assert(m == 1, "event flag error"); @@ -2994,7 +2997,7 @@ threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriorityX() - 1, </tags>
<code>
<value><![CDATA[m = chEvtWaitAll(5); -test_assert_time_window(target_time,
+test_assert_time_window(target_time, chTimeAddX(target_time, ALLOWED_DELAY), "out of time window"); test_assert(m == 5, "event flags error"); @@ -3121,7 +3124,7 @@ threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriorityX() - 1, </tags>
<code>
<value><![CDATA[m = chEvtWaitAll(5); -test_assert_time_window(target_time,
+test_assert_time_window(target_time, chTimeAddX(target_time, ALLOWED_DELAY), "out of time window"); m = chEvtGetAndClearEvents(ALL_EVENTS); diff --git a/test/rt/source/test/rt_test_root.c b/test/rt/source/test/rt_test_root.c index 0349fc1e6..5de8d38aa 100644 --- a/test/rt/source/test/rt_test_root.c +++ b/test/rt/source/test/rt_test_root.c @@ -79,7 +79,7 @@ const testsequence_t * const rt_test_suite_array[] = { * @brief Test suite root structure.
*/
const testsuite_t rt_test_suite = {
- "ChibiOS/RT Test Suite.",
+ "ChibiOS/RT Test Suite",
rt_test_suite_array
};
|