diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-03 09:53:22 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-03 09:53:22 +0000 |
commit | 05b9eb553005fd070c6710d0245a1d67c21966e6 (patch) | |
tree | 005eb73356abf76c4827e8fadbc97fb4dea962ae /test/nil | |
parent | 88fc433e5dfc3ddc3948d27b78be2e531113fa1e (diff) | |
download | ChibiOS-05b9eb553005fd070c6710d0245a1d67c21966e6.tar.gz ChibiOS-05b9eb553005fd070c6710d0245a1d67c21966e6.tar.bz2 ChibiOS-05b9eb553005fd070c6710d0245a1d67c21966e6.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9231 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/nil')
-rw-r--r-- | test/nil/configuration.xml | 5 | ||||
-rw-r--r-- | test/nil/source/test/test_root.c | 8 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_005.c | 3 |
3 files changed, 15 insertions, 1 deletions
diff --git a/test/nil/configuration.xml b/test/nil/configuration.xml index c759ff4f9..87f76a7fb 100644 --- a/test/nil/configuration.xml +++ b/test/nil/configuration.xml @@ -962,8 +962,11 @@ test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message");]]></value> <value><![CDATA[#define MEMORY_POOL_SIZE 4 static uint32_t objects[MEMORY_POOL_SIZE]; -static MEMORYPOOL_DECL(mp1, sizeof (uint32_t), NULL); +static MEMORYPOOL_DECL(mp1, sizeof (uint32_t), NULL);
+
+#if CH_CFG_USE_SEMAPHORES static GUARDEDMEMORYPOOL_DECL(gmp1, sizeof (uint32_t)); +#endif
static void *null_provider(size_t size, unsigned align) { diff --git a/test/nil/source/test/test_root.c b/test/nil/source/test/test_root.c index 23d4884c9..a143b6e44 100644 --- a/test/nil/source/test/test_root.c +++ b/test/nil/source/test/test_root.c @@ -50,11 +50,19 @@ */
const testcase_t * const *test_suite[] = {
test_sequence_001,
+#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__)
test_sequence_002,
+#endif
test_sequence_003,
+#if (CH_CFG_USE_MAILBOXES) || defined(__DOXYGEN__)
test_sequence_004,
+#endif
+#if (CH_CFG_USE_MEMPOOLS) || defined(__DOXYGEN__)
test_sequence_005,
+#endif
+#if (CH_CFG_USE_HEAP) || defined(__DOXYGEN__)
test_sequence_006,
+#endif
NULL
};
diff --git a/test/nil/source/test/test_sequence_005.c b/test/nil/source/test/test_sequence_005.c index a9e22e0db..e95011d18 100644 --- a/test/nil/source/test/test_sequence_005.c +++ b/test/nil/source/test/test_sequence_005.c @@ -53,7 +53,10 @@ static uint32_t objects[MEMORY_POOL_SIZE]; static MEMORYPOOL_DECL(mp1, sizeof (uint32_t), NULL); + +#if CH_CFG_USE_SEMAPHORES static GUARDEDMEMORYPOOL_DECL(gmp1, sizeof (uint32_t)); +#endif static void *null_provider(size_t size, unsigned align) { |