diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-04-21 09:07:57 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-04-22 08:37:02 -0500 |
commit | 97ae79d76216dccf349d07e55245be2af9d78acb (patch) | |
tree | 037ea79cb8824f141b223729560e185b43fa72cd /testsuites/fstests | |
parent | libcpu/sh: Build cache stubs so apps usign cache API link (diff) | |
download | rtems-97ae79d76216dccf349d07e55245be2af9d78acb.tar.bz2 |
fsdosfsformat01: Honor BSP_SMALL_MEMORY
Diffstat (limited to 'testsuites/fstests')
-rw-r--r-- | testsuites/fstests/fsdosfsformat01/init.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/testsuites/fstests/fsdosfsformat01/init.c b/testsuites/fstests/fsdosfsformat01/init.c index 976dc9cb7d..cb8a5eae44 100644 --- a/testsuites/fstests/fsdosfsformat01/init.c +++ b/testsuites/fstests/fsdosfsformat01/init.c @@ -18,6 +18,11 @@ #include "tmacros.h" +#include <bsp.h> + +const char rtems_test_name[] = "FSDOSFSFORMAT 1"; + +#if !defined(BSP_SMALL_MEMORY) #include <fcntl.h> #include <inttypes.h> #include <sys/statvfs.h> @@ -26,10 +31,6 @@ #include <rtems/dosfs.h> #include <rtems/sparse-disk.h> -#include <bsp.h> - -const char rtems_test_name[] = "FSDOSFSFORMAT 1"; - #define MAX_PATH_LENGTH 100 /* Maximum number of characters per path */ #define SECTOR_SIZE 512 /* sector size (bytes) */ #define FAT12_MAX_CLN 4085 /* maximum + 1 number of clusters for FAT12 */ @@ -470,12 +471,17 @@ static void test( void ) rv = unlink( dev_name ); rtems_test_assert( rv == 0 ); } +#endif static void Init( rtems_task_argument arg ) { TEST_BEGIN(); +#if defined(BSP_SMALL_MEMORY) + puts( "Test is too large for small memory BSPs" ); +#else test(); +#endif TEST_END(); rtems_test_exit( 0 ); |