forked from Imagelibrary/rtems
fsdosfsformat01: Honor BSP_SMALL_MEMORY
This commit is contained in:
@@ -18,6 +18,11 @@
|
|||||||
|
|
||||||
#include "tmacros.h"
|
#include "tmacros.h"
|
||||||
|
|
||||||
|
#include <bsp.h>
|
||||||
|
|
||||||
|
const char rtems_test_name[] = "FSDOSFSFORMAT 1";
|
||||||
|
|
||||||
|
#if !defined(BSP_SMALL_MEMORY)
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <sys/statvfs.h>
|
#include <sys/statvfs.h>
|
||||||
@@ -26,10 +31,6 @@
|
|||||||
#include <rtems/dosfs.h>
|
#include <rtems/dosfs.h>
|
||||||
#include <rtems/sparse-disk.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 MAX_PATH_LENGTH 100 /* Maximum number of characters per path */
|
||||||
#define SECTOR_SIZE 512 /* sector size (bytes) */
|
#define SECTOR_SIZE 512 /* sector size (bytes) */
|
||||||
#define FAT12_MAX_CLN 4085 /* maximum + 1 number of clusters for FAT12 */
|
#define FAT12_MAX_CLN 4085 /* maximum + 1 number of clusters for FAT12 */
|
||||||
@@ -470,12 +471,17 @@ static void test( void )
|
|||||||
rv = unlink( dev_name );
|
rv = unlink( dev_name );
|
||||||
rtems_test_assert( rv == 0 );
|
rtems_test_assert( rv == 0 );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void Init( rtems_task_argument arg )
|
static void Init( rtems_task_argument arg )
|
||||||
{
|
{
|
||||||
TEST_BEGIN();
|
TEST_BEGIN();
|
||||||
|
|
||||||
|
#if defined(BSP_SMALL_MEMORY)
|
||||||
|
puts( "Test is too large for small memory BSPs" );
|
||||||
|
#else
|
||||||
test();
|
test();
|
||||||
|
#endif
|
||||||
|
|
||||||
TEST_END();
|
TEST_END();
|
||||||
rtems_test_exit( 0 );
|
rtems_test_exit( 0 );
|
||||||
|
|||||||
Reference in New Issue
Block a user