Changeset 2bea494 in rtems


Ignore:
Timestamp:
Apr 21, 2014, 2:08:15 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
faa4e4c
Parents:
97ae79d7
git-author:
Joel Sherrill <joel.sherrill@…> (04/21/14 14:08:15)
git-committer:
Joel Sherrill <joel.sherrill@…> (04/22/14 13:37:02)
Message:

fsdosfsname01: Honor BSP_SMALL_MEMORY

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/fsdosfsname01/init.c

    r97ae79d7 r2bea494  
    1717#endif
    1818
    19 
    2019#include "tmacros.h"
    2120
     21const char rtems_test_name[] = "FSDOSFSNAME 1";
     22
     23#if !defined(BSP_SMALL_MEMORY)
    2224#include <errno.h>
    2325#include <fcntl.h>
     
    3638
    3739#include <errno.h>
    38 
    39 const char rtems_test_name[] = "FSDOSFSNAME 1";
    4040
    4141#define PRINT_DISK_IMAGE 0
     
    12921292  test_compatibility();
    12931293}
     1294#endif
    12941295
    12951296static void Init( rtems_task_argument arg )
     
    12971298  TEST_BEGIN();
    12981299
     1300#if defined(BSP_SMALL_MEMORY)
     1301  puts( "Test is too large for small memory BSPs" );
     1302#else
    12991303  test();
     1304#endif
    13001305
    13011306  TEST_END();
     
    13031308}
    13041309
     1310/*
     1311 * Disable the "large" part of the configuration for this test
     1312 */
     1313#if !defined(BSP_SMALL_MEMORY)
    13051314rtems_ramdisk_config rtems_ramdisk_configuration [] = {
    13061315  { .block_size = BLOCK_SIZE, .block_num = BLOCK_NUM },
     
    13121321
    13131322#define CONFIGURE_INIT_TASK_STACK_SIZE ( 1024 * 64 )
    1314 #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
    1315 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    13161323#define CONFIGURE_MAXIMUM_DRIVERS 4
    13171324#define CONFIGURE_MAXIMUM_SEMAPHORES (2 * RTEMS_DOSFS_SEMAPHORES_PER_INSTANCE)
     1325
    13181326#define CONFIGURE_APPLICATION_EXTRA_DRIVERS RAMDISK_DRIVER_TABLE_ENTRY
    1319 
    1320 #define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
    13211327
    13221328#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
     
    13281334#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS ( 7 + 2 + ( 4 * 2 ) )
    13291335
     1336#endif
     1337
     1338/*
     1339 * Even when in BSP_SMALL_MEMORY mode, we need this much to build and
     1340 * link the test.  Hopefully this reduces the footprint sufficiently.
     1341 */
     1342#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
     1343#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     1344
     1345#define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
    13301346#define CONFIGURE_MAXIMUM_TASKS 1
    1331 
    13321347#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    1333 
    13341348#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    13351349
Note: See TracChangeset for help on using the changeset viewer.