Changeset d05ec0f in rtems


Ignore:
Timestamp:
Oct 4, 2009, 10:02:18 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
ff3c06a
Parents:
64a3d8bb
Message:

2009-10-04 Joel Sherrill <joel.sherrill@…>

  • sp07/init.c, sp07/sp07.scn, sp09/init.c, sp09/screen01.c, sp09/sp09.scn, sp28/init.c, sp62/init.c, sp62/sp62.scn, sp64/init.c, sp64/sp64.scn: Add more test cases highlighted on SPARC at -O2, x86 at -Os and m68k at -Os. Fix typos.
Location:
testsuites/sptests
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r64a3d8bb rd05ec0f  
     12009-10-04      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * sp07/init.c, sp07/sp07.scn, sp09/init.c, sp09/screen01.c,
     4        sp09/sp09.scn, sp28/init.c, sp62/init.c, sp62/sp62.scn, sp64/init.c,
     5        sp64/sp64.scn: Add more test cases highlighted on SPARC at -O2, x86
     6        at -Os and m68k at -Os. Fix typos.
     7
    182009-10-02      Ralf Corsépius <ralf.corsepius@rtems.org>
    29
  • testsuites/sptests/sp07/init.c

    r64a3d8bb rd05ec0f  
    1 /*  Init
    2  *
    3  *  This routine is the initialization task for this test program.
    4  *  It is a user initialization task and has the responsibility for creating
    5  *  and starting the tasks that make up the test.  If the time of day
    6  *  clock is required for the test, it should also be set to a known
    7  *  value by this function.
    8  *
    9  *  Input parameters:
    10  *    argument - task argument
    11  *
    12  *  Output parameters:  NONE
    13  *
     1/*
    142 *  COPYRIGHT (c) 1989-2009.
    153 *  On-Line Applications Research Corporation (OAR).
     
    172160  buffered_io_flush();
    173161
     162  status = rtems_task_set_note( rtems_task_self(), RTEMS_NOTEPAD_4, 32 );
     163  directive_failed( status, "task_set_node of Self id" );
     164  printf( "INIT - rtems_task_set_note - set my (id) RTEMS_NOTEPAD_4 " );
     165  puts  ( "to TA1's priority: 04" );
     166
    174167  status = rtems_task_set_note( RTEMS_SELF, RTEMS_NOTEPAD_4, 32 );
    175   directive_failed( status, "task_set_node of Self" );
    176   printf( "INIT - rtems_task_set_note - set my RTEMS_NOTEPAD_4 " );
     168  directive_failed( status, "task_set_node of Self 0" );
     169  printf( "INIT - rtems_task_set_note - set my (SELF) RTEMS_NOTEPAD_4 " );
    177170  puts  ( "to TA1's priority: 04" );
    178171
  • testsuites/sptests/sp07/sp07.scn

    r64a3d8bb rd05ec0f  
    1919TASK_START - TA4  - started
    2020TASK_RESTART - TA3  - restarted
    21 INIT - rtems_task_set_note - set my RTEMS_NOTEPAD_4 to TA1's priority: 04
     21INIT - rtems_task_set_note - set my (id) RTEMS_NOTEPAD_4 to TA1's priority: 04
     22INIT - rtems_task_set_note - set my (SELF) RTEMS_NOTEPAD_4 to TA1's priority: 04
    2223INIT - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8 to TA1's priority: 04
    2324INIT - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8 to TA2's priority: 04
  • testsuites/sptests/sp09/init.c

    r64a3d8bb rd05ec0f  
    1 /*  Init
    2  *
    3  *  This routine is the initialization task for this test program.
    4  *  It is a user initialization task and has the responsibility for creating
    5  *  and starting the tasks that make up the test.  If the time of day
    6  *  clock is required for the test, it should also be set to a known
    7  *  value by this function.
    8  *
    9  *  Input parameters:
    10  *    argument - task argument
    11  *
    12  *  Output parameters:  NONE
    13  *
    14  *  COPYRIGHT (c) 1989-1999.
     1/*
     2 *  COPYRIGHT (c) 1989-2009.
    153 *  On-Line Applications Research Corporation (OAR).
    164 *
     
    6149  Period_name[ 1 ]     =  rtems_build_name( 'T', 'M', '1', ' ' );
    6250
     51  /* priority of 0 error */
    6352  status = rtems_task_create(
    6453     Task_name[1],
     
    7463    "rtems_task_create with illegal priority"
    7564  );
    76   puts( "INIT - rtems_task_create - RTEMS_INVALID_PRIORITY" );
     65  puts( "INIT - rtems_task_create - priority of 0 - RTEMS_INVALID_PRIORITY" );
     66
     67  /* priority > 255 error */
     68  status = rtems_task_create(
     69     Task_name[1],
     70     257,
     71     RTEMS_MINIMUM_STACK_SIZE,
     72     RTEMS_DEFAULT_MODES,
     73     RTEMS_DEFAULT_ATTRIBUTES,
     74     &Task_id[ 1 ]
     75  );
     76  fatal_directive_status(
     77    status,
     78    RTEMS_INVALID_PRIORITY,
     79    "rtems_task_create with illegal priority"
     80  );
     81  puts(
     82    "INIT - rtems_task_create - priority too high - RTEMS_INVALID_PRIORITY"
     83  );
    7784
    7885  status = rtems_task_create(
  • testsuites/sptests/sp09/screen01.c

    r64a3d8bb rd05ec0f  
    22 *
    33 *  This routine generates error screen 1 for test 9.
    4  *
    5  *  Input parameters:  NONE
    6  *
    7  *  Output parameters:  NONE
    84 *
    95 *  COPYRIGHT (c) 1989-2009.
     
    2723  rtems_status_code   status;
    2824
     25  /* bad Id */
     26  status = rtems_task_is_suspended( 100 );
     27  fatal_directive_status(
     28    status,
     29    RTEMS_INVALID_ID,
     30    "rtems_task_set_priority with illegal id"
     31  );
     32  puts( "TA1 - rtems_task_is_suspended - RTEMS_INVALID_ID" );
     33
     34  /* bad Id */
    2935  status = rtems_task_delete( 100 );
    3036  fatal_directive_status(
  • testsuites/sptests/sp09/sp09.scn

    r64a3d8bb rd05ec0f  
    11*** TEST 9 ***
    2 INIT - rtems_task_create - RTEMS_INVALID_PRIORITY
     2INIT - rtems_task_create - priority of 0 - RTEMS_INVALID_PRIORITY
     3INIT - rtems_task_create - priority too high - RTEMS_INVALID_PRIORITY
    34INIT - rtems_task_restart - RTEMS_INCORRECT_STATE
     5TA1 - rtems_task_is_suspended - RTEMS_INVALID_ID
    46TA1 - rtems_task_delete - RTEMS_INVALID_ID
    57TA1 - rtems_task_get_note - RTEMS_INVALID_ADDRESS
  • testsuites/sptests/sp28/init.c

    r64a3d8bb rd05ec0f  
    120120   */
    121121  puts( "task variable add - NULL pointer - RTEMS_INVALID_ADDRESS" );
    122   sc = rtems_task_variable_get(RTEMS_SELF, NULL, NULL );
     122  sc = rtems_task_variable_add(RTEMS_SELF, NULL, NULL );
    123123  fatal_directive_status( sc, RTEMS_INVALID_ADDRESS, "add NULL pointer" );
    124124
  • testsuites/sptests/sp62/init.c

    r64a3d8bb rd05ec0f  
    5151  void              *segment_address_1;
    5252  intptr_t           old_size;
     53  size_t             size;
    5354
    5455  puts( "\n\n*** TEST 62 ***" );
     
    105106  if ( case_hit ) {
    106107    puts( "Init - successfully resized and unblocked a task" );
    107     puts( "*** END OF TEST 62 ***" );
    108   } else
     108  } else {
    109109    puts( "Init - failed to resize and unblock a task" );
     110    rtems_test_exit(0);
     111  }
    110112
     113  /*
     114   *  Now resize and take all of memory so there is no need to
     115   *  process any blocked tasks waiting for memory.
     116   */
     117
     118  size = sizeof(Region_Memory);
     119  while (1) {
     120    sc = rtems_region_resize_segment(
     121      Region, segment_address_1, size, &old_size);
     122    if ( sc == RTEMS_UNSATISFIED ) {
     123      size --;
     124      if ( size )
     125        continue;
     126    }
     127    directive_failed( sc, "rtems_region_resize_segment" );
     128    if ( sc == RTEMS_SUCCESSFUL )
     129      break;
     130
     131  }
     132  if ( sc == RTEMS_SUCCESSFUL && size != 0 )
     133    puts( "Init - resized to all of available memory" );
     134
     135  puts( "*** END OF TEST 62 ***" );
    111136  rtems_test_exit(0);
    112137}
  • testsuites/sptests/sp62/sp62.scn

    r64a3d8bb rd05ec0f  
    99Blocker - Got memory after resize
    1010Init - successfully resized and unblocked a task
     11Init - resized to all of available memory
    1112*** END OF TEST 62 ***
  • testsuites/sptests/sp64/init.c

    r64a3d8bb rd05ec0f  
    145145  #endif
    146146
    147   puts( "*** END OF TEST 63 ***" );
     147  puts( "*** END OF TEST 64 ***" );
    148148  rtems_test_exit(0);
    149149}
  • testsuites/sptests/sp64/sp64.scn

    r64a3d8bb rd05ec0f  
    44Init - rtems_region_create - auto-extend - RTEMS_UNSATISFIED
    55Init - rtems_region_delete - OK
    6 *** END OF TEST 63 ***
     6*** END OF TEST 64 ***
Note: See TracChangeset for help on using the changeset viewer.