summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-04-08 09:47:54 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-04-08 09:54:53 +0200
commita53045fda56ee5232aa84c69fc4fb9195e24d14f (patch)
treeadbd6737fafda7f5e10d710e8cfad59517bd1098
parentsptests/spstkalloc02: Disable for small memory BSP (diff)
downloadrtems-a53045fda56ee5232aa84c69fc4fb9195e24d14f.tar.bz2
libtests/flashdisk01: Disable for small memory BSP
-rw-r--r--testsuites/libtests/flashdisk01/init.c25
-rw-r--r--testsuites/libtests/flashdisk01/test-file-system.c6
2 files changed, 31 insertions, 0 deletions
diff --git a/testsuites/libtests/flashdisk01/init.c b/testsuites/libtests/flashdisk01/init.c
index 3c6ffae1af..8abca7dfa8 100644
--- a/testsuites/libtests/flashdisk01/init.c
+++ b/testsuites/libtests/flashdisk01/init.c
@@ -18,6 +18,8 @@
#include "tmacros.h"
+#if !BSP_SMALL_MEMORY
+
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
@@ -354,3 +356,26 @@ uint32_t rtems_flashdisk_configuration_size = FLASHDISK_CONFIG_COUNT;
#define CONFIGURE_INIT
#include <rtems/confdefs.h>
+
+#else /* BSP_SMALL_MEMORY */
+
+static void Init(rtems_task_argument arg)
+{
+ puts("\n\n*** TEST FLASHDISK 1 ***");
+ 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 */
diff --git a/testsuites/libtests/flashdisk01/test-file-system.c b/testsuites/libtests/flashdisk01/test-file-system.c
index d3515d0743..11ceb3a4d8 100644
--- a/testsuites/libtests/flashdisk01/test-file-system.c
+++ b/testsuites/libtests/flashdisk01/test-file-system.c
@@ -14,6 +14,10 @@
#include "test-file-system.h"
+#include <bsp.h>
+
+#if !BSP_SMALL_MEMORY
+
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
@@ -830,3 +834,5 @@ void test_file_system_with_handler(
free(fs);
}
+
+#endif /* !BSP_SMALL_MEMORY */