[rtems commit] sptests/spstkalloc02: Disable for small memory BSP

Sebastian Huber sebh at rtems.org
Mon Apr 8 07:50:53 UTC 2013


Module:    rtems
Branch:    master
Commit:    b217a4b7ee04578f27f24aa0930cb2c2671e7e92
Changeset: http://git.rtems.org/rtems/commit/?id=b217a4b7ee04578f27f24aa0930cb2c2671e7e92

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Apr  8 09:46:22 2013 +0200

sptests/spstkalloc02: Disable for small memory BSP

---

 testsuites/sptests/spstkalloc02/init.c |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/testsuites/sptests/spstkalloc02/init.c b/testsuites/sptests/spstkalloc02/init.c
index 56293c9..8c1db21 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 */




More information about the vc mailing list