Changeset df49c60 in rtems for testsuites/psxtests/psxfile01


Ignore:
Timestamp:
Jun 12, 2000, 3:00:15 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
edeed26
Parents:
0ab65474
Message:

Merged from 4.5.0-beta3a

Location:
testsuites/psxtests/psxfile01
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxfile01/Makefile.am

    r0ab65474 rdf49c60  
    1 ## 
     1##
    22## $Id$
    3 ## 
     3##
    44
    55AUTOMAKE_OPTIONS = foreign 1.4
    6 
    7 VPATH = @srcdir@
    86
    97TEST = psxfile01
  • testsuites/psxtests/psxfile01/main.c

    r0ab65474 rdf49c60  
    2828/* configuration information */
    2929
    30 #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
    31 #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
     30#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     31#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     32
     33#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
     34#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 6
     35
     36#define CONFIGURE_MAXIMUM_TASKS 1
    3237
    3338#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
  • testsuites/psxtests/psxfile01/psxfile01.scn

    r0ab65474 rdf49c60  
    1 
     1NOTE: If you get the following assertion, then your target does not
     2have enough memory in the heap used by malloc to allocate all the
     3files used during this test:
     4
     5assertion "memory" failed: file "...../c/src/lib/libc/memfile.c", line 340
    26
    37*** FILE TEST 1 ***
  • testsuites/psxtests/psxfile01/test.c

    r0ab65474 rdf49c60  
    389389   */
    390390
    391   test_extend( "/tmp/joel", max_size - 1 );
    392   test_cat( "/tmp/joel", max_size / 2, 1024 );
     391  if ( max_size < 300 * 1024 ) {
     392    test_extend( "/tmp/joel", max_size - 1 );
     393    test_cat( "/tmp/joel", max_size / 2, 1024 );
     394  } else {
     395    printf( "Skipping maximum file size test since max_size is %d bytes\n", max_size );
     396    puts("That is likely to be bigger than the available RAM on many targets." );
     397  }
    393398
    394399  stat_a_file( "/tmp/joel" );
     
    430435  rewind( file );
    431436  while ( fgets(buffer, 128, file) )
    432     printf( buffer );
     437    printf( "%s", buffer );
    433438
    434439  /*
Note: See TracChangeset for help on using the changeset viewer.