Changeset 9e0cdd8 in rtems


Ignore:
Timestamp:
Dec 16, 2003, 11:34:42 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
462e2d7c
Parents:
7a1e8c88
Message:

2003-12-16 Joel Sherrill <joel@…>

PR 544/tests

  • sp07/Makefile.am, sp07/init.c, sp07/system.h, sp07/task4.c, sp07/tcreate.c, sp07/tdelete.c, sp07/trestart.c, sp07/tstart.c, sp09/system.h, sp19/system.h, sp20/system.h: Various modifications to make tests account for resources and not print at inappropriate times.
  • sp07/buffered_io.c: New file.
Location:
c/src/tests/sptests
Files:
1 added
12 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/sptests/ChangeLog

    r7a1e8c88 r9e0cdd8  
     12003-12-16      Joel Sherrill <joel@OARcorp.com>
     2
     3        PR 544/tests
     4        * sp07/Makefile.am, sp07/init.c, sp07/system.h, sp07/task4.c,
     5        sp07/tcreate.c, sp07/tdelete.c, sp07/trestart.c, sp07/tstart.c,
     6        sp09/system.h, sp19/system.h, sp20/system.h: Various modifications to
     7        make tests account for resources and not print at inappropriate
     8        times.
     9        * sp07/buffered_io.c: New file.
     10
    1112003-09-04      Joel Sherrill <joel@OARcorp.com>
    212
  • c/src/tests/sptests/sp07/Makefile.am

    r7a1e8c88 r9e0cdd8  
    88MANAGERS = io
    99
    10 C_FILES = init.c task1.c task2.c task3.c task4.c taskexit.c tcreate.c \
    11     tdelete.c trestart.c tstart.c
     10C_FILES = init.c buffered_io.c task1.c task2.c task3.c task4.c taskexit.c \
     11    tcreate.c tdelete.c trestart.c tstart.c
    1212C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT))
    1313
  • c/src/tests/sptests/sp07/init.c

    r7a1e8c88 r9e0cdd8  
    4343
    4444  puts( "\n\n*** TEST 7 ***" );
     45
     46  buffered_io_initialize();
    4547
    4648  Extension_name[ 1 ] =  rtems_build_name( 'E', 'X', 'T', ' ' );
     
    113115  directive_failed( status, "rtems_task_restart of TA3" );
    114116
     117  buffered_io_flush();
     118
    115119  status = rtems_task_set_note( Task_id[ 1 ], RTEMS_NOTEPAD_8, 4 );
    116120  directive_failed( status, "task_set_node of TA1" );
  • c/src/tests/sptests/sp07/system.h

    r7a1e8c88 r9e0cdd8  
    1616#include <tmacros.h>
    1717
     18/* buffered IO */
     19
     20void buffered_io_initialize( void );
     21
     22void buffered_io_flush(void);
     23
     24void buffered_io_add_string( char *s );
     25
     26/* end of buffered IO */
     27 
    1828/* functions */
    1929
  • c/src/tests/sptests/sp07/task4.c

    r7a1e8c88 r9e0cdd8  
    2626)
    2727{
     28  buffered_io_flush();
     29
    2830  puts( "TA4 - exitting task" );
    2931}
  • c/src/tests/sptests/sp07/tcreate.c

    r7a1e8c88 r9e0cdd8  
    2626)
    2727{
     28  char line[80];
     29  rtems_name name;
     30
    2831  if ( task_number( created_task->Object.id ) > 0 ) {
    29     puts_nocr( "TASK_CREATE - " );
    30     put_name( Task_name[ task_number( created_task->Object.id ) ], FALSE );
    31     puts( " - created." );
     32    name = Task_name[ task_number( created_task->Object.id ) ];
     33    sprintf( line, "TASK_CREATE - %c%c%c%c - created\n",
     34      (name >> 24) & 0xff,
     35      (name >> 16) & 0xff,
     36      (name >> 8) & 0xff,
     37      name & 0xff
     38    );
     39    buffered_io_add_string( line );
    3240  }
    3341  return TRUE;
  • c/src/tests/sptests/sp07/tdelete.c

    r7a1e8c88 r9e0cdd8  
    2626)
    2727{
     28  char line[80];
     29  rtems_name name;
     30
    2831  if ( task_number( running_task->Object.id ) > 0 ) {
     32    name = Task_name[ task_number( running_task->Object.id ) ];
     33    sprintf( line, "TASK_DELETE - %c%c%c%c",
     34      (name >> 24) & 0xff,
     35      (name >> 16) & 0xff,
     36      (name >> 8) & 0xff,
     37      name & 0xff
     38    );
     39    buffered_io_add_string( line );
    2940    puts_nocr( "TASK_DELETE - " );
    3041    put_name( Task_name[ task_number( running_task->Object.id ) ], FALSE );
    3142  }
    3243  if ( task_number( deleted_task->Object.id ) > 0 ) {
    33     puts_nocr( " deleting " );
    34     put_name( Task_name[ task_number( deleted_task->Object.id ) ], TRUE );
     44    name = Task_name[ task_number( deleted_task->Object.id ) ];
     45    sprintf( line, "deleting - %c%c%c%c\n",
     46      (name >> 24) & 0xff,
     47      (name >> 16) & 0xff,
     48      (name >> 8) & 0xff,
     49      name & 0xff
     50    );
     51    buffered_io_add_string( line );
    3552  }
    3653}
  • c/src/tests/sptests/sp07/trestart.c

    r7a1e8c88 r9e0cdd8  
    2626)
    2727{
     28  char line[80];
     29  rtems_name name;
     30
    2831  if ( task_number( restarted_task->Object.id ) > 0 ) {
    29     puts_nocr( "TASK_RESTART - " );
    30     put_name( Task_name[ task_number( restarted_task->Object.id ) ], FALSE );
    31     puts( " - restarted." );
     32    name = Task_name[ task_number( restarted_task->Object.id ) ];
     33    sprintf( line, "TASK_RESTART - %c%c%c%c - restarted\n",
     34      (name >> 24) & 0xff,
     35      (name >> 16) & 0xff,
     36      (name >> 8) & 0xff,
     37      name & 0xff
     38    );
     39    buffered_io_add_string( line );
    3240  }
    3341}
  • c/src/tests/sptests/sp07/tstart.c

    r7a1e8c88 r9e0cdd8  
    2626)
    2727{
     28  char line[80];
     29  rtems_name name;
     30
    2831  if ( task_number( started_task->Object.id ) > 0 ) {
    29     puts_nocr( "TASK_START - " );
    30     put_name( Task_name[ task_number( started_task->Object.id ) ], FALSE );
    31     puts( " - started." );
     32    name = Task_name[ task_number( started_task->Object.id ) ];
     33    sprintf( line, "TASK_START - %c%c%c%c - started\n",
     34      (name >> 24) & 0xff,
     35      (name >> 16) & 0xff,
     36      (name >> 8) & 0xff,
     37      name & 0xff
     38    );
     39    buffered_io_add_string( line );
    3240  }
    3341}
  • c/src/tests/sptests/sp09/system.h

    r7a1e8c88 r9e0cdd8  
    9696#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    9797
    98 #define CONFIGURE_EXTRA_TASK_STACKS         (2 * RTEMS_MINIMUM_STACK_SIZE)
     98#define CONFIGURE_EXTRA_TASK_STACKS         (20 * RTEMS_MINIMUM_STACK_SIZE)
    9999
    100100#include <confdefs.h>
  • c/src/tests/sptests/sp19/system.h

    r7a1e8c88 r9e0cdd8  
    4545#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4646
    47 #define CONFIGURE_EXTRA_TASK_STACKS         (18 * RTEMS_MINIMUM_STACK_SIZE)
     47#define CONFIGURE_EXTRA_TASK_STACKS         (24 * RTEMS_MINIMUM_STACK_SIZE)
    4848
    4949#include <confdefs.h>
  • c/src/tests/sptests/sp20/system.h

    r7a1e8c88 r9e0cdd8  
    4646#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4747
    48 #define CONFIGURE_EXTRA_TASK_STACKS         (6 * 3 * RTEMS_MINIMUM_STACK_SIZE)
     48#define CONFIGURE_EXTRA_TASK_STACKS         (6 * 4 * RTEMS_MINIMUM_STACK_SIZE)
    4949
    5050#include <confdefs.h>
Note: See TracChangeset for help on using the changeset viewer.