summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spstkalloc02
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-04-08 09:46:22 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-04-08 09:54:53 +0200
commitb217a4b7ee04578f27f24aa0930cb2c2671e7e92 (patch)
tree08a3ef28b502b14c6db6310bcb952dee14f94fe3 /testsuites/sptests/spstkalloc02
parentbsps/powerpc: Use proper type (diff)
downloadrtems-b217a4b7ee04578f27f24aa0930cb2c2671e7e92.tar.bz2
sptests/spstkalloc02: Disable for small memory BSP
Diffstat (limited to 'testsuites/sptests/spstkalloc02')
-rw-r--r--testsuites/sptests/spstkalloc02/init.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuites/sptests/spstkalloc02/init.c b/testsuites/sptests/spstkalloc02/init.c
index 56293c98bc..8c1db21339 100644
--- a/testsuites/sptests/spstkalloc02/init.c
+++ b/testsuites/sptests/spstkalloc02/init.c
@@ -26,6 +26,8 @@
#include <tmacros.h>
+#if !BSP_SMALL_MEMORY
+
#include <stdio.h>
#include <inttypes.h>
@@ -158,3 +160,26 @@ static void task_stack_free(void *addr)
{
_Heap_Free(&task_stack_heap, addr);
}
+
+#else /* BSP_SMALL_MEMORY */
+
+static void Init(rtems_task_argument arg)
+{
+ puts("\n\n*** TEST STKALLOC 02 ***");
+ puts("NOT ENOUGH MEMORY TO RUN TEST");
+
+ rtems_test_exit(0);
+}
+
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+
+#endif /* BSP_SMALL_MEMORY */