aboutsummaryrefslogtreecommitdiffstats
path: root/test/nil
diff options
context:
space:
mode:
Diffstat (limited to 'test/nil')
-rw-r--r--test/nil/configuration.xml5
-rw-r--r--test/nil/source/test/test_root.c8
-rw-r--r--test/nil/source/test/test_sequence_005.c3
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) {