Changeset 14a64dc5 in rtems


Ignore:
Timestamp:
Jan 7, 2008, 3:26:46 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
52e70cf
Parents:
cd30436
Message:

2008-01-07 Joel Sherrill <joel.sherrill@…>

  • sp09/screen07.c, sp09/screen12.c, sp09/screen14.c, sp09/sp09.scn Add test cases for: + message queue create requesting too many message buffers

for the available memory

+ region extend with address inside existing heap
+ timer server initiate too large a stack, create error

  • sp12/pritask.c, sp12/sp12.scn: Add test cases for: + task set priority while holding resource
Location:
testsuites/sptests
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rcd30436 r14a64dc5  
     12008-01-07      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * sp09/screen07.c, sp09/screen12.c, sp09/screen14.c, sp09/sp09.scn
     4        Add test cases for:
     5          + message queue create requesting too many message buffers
     6            for the available memory
     7          + region extend with address inside existing heap
     8          + timer server initiate too large a stack, create error
     9        * sp12/pritask.c, sp12/sp12.scn: Add test cases for:
     10          + task set priority while holding resource
     11
    1122008-01-07      Joel Sherrill <joel.sherrill@oarcorp.com>
    213
  • testsuites/sptests/sp09/screen07.c

    rcd30436 r14a64dc5  
    7171  puts( "TA1 - rtems_message_queue_create - Q 1 - RTEMS_MP_NOT_CONFIGURED" );
    7272
     73  /* not enough memory for messages */
     74  status = rtems_message_queue_create(
     75    Queue_name[ 1 ],
     76    1000000,                     /* 1 million messages should do it */
     77    MESSAGE_SIZE,
     78    RTEMS_DEFAULT_ATTRIBUTES,
     79    &Queue_id[ 1 ]
     80  );
     81  fatal_directive_status(
     82    status,
     83    RTEMS_UNSATISFIED,
     84    "rtems_message_queue_create unsatisfied"
     85  );
     86  puts( "TA1 - rtems_message_queue_create - Q 2 - RTEMS_UNSATISFIED" );
     87
    7388  status = rtems_message_queue_create(
    7489    Queue_name[ 1 ],
     
    7994  );
    8095  directive_failed( status, "rtems_message_queue_create successful" );
    81   puts(
    82     "TA1 - rtems_message_queue_create - Q 1 - 2 DEEP - RTEMS_SUCCESSFUL"
    83   );
     96  puts( "TA1 - rtems_message_queue_create - Q 1 - 2 DEEP - RTEMS_SUCCESSFUL" );
    8497
    8598  status = rtems_message_queue_create(
  • testsuites/sptests/sp09/screen12.c

    rcd30436 r14a64dc5  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2007.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    128128  puts( "TA1 - rtems_region_create - RTEMS_SUCCESSFUL" );
    129129
     130  status = rtems_region_extend(
     131    Region_id[ 1 ],
     132    &Region_good_area[ REGION_START_OFFSET ],
     133    REGION_LENGTH - 1
     134  );
     135  fatal_directive_status(
     136    status,
     137    RTEMS_INVALID_ADDRESS,
     138    "rtems_region_extend with address in heap"
     139  );
     140  puts( "TA1 - rtems_region_extend - address within - RTEMS_INVALID_ADDRESS" );
     141
    130142  status = rtems_region_create(
    131143    Region_name[ 1 ],
  • testsuites/sptests/sp09/screen14.c

    rcd30436 r14a64dc5  
    188188  puts( "TA1 - rtems_timer_initiate_server - RTEMS_INVALID_PRIORITY" );
    189189
     190  status = rtems_timer_initiate_server(
     191      RTEMS_TIMER_SERVER_DEFAULT_PRIORITY,
     192      0x10000000,
     193      0
     194  );
     195  fatal_directive_status(
     196    status,
     197    RTEMS_UNSATISFIED,
     198    "rtems_timer_initiate_server too much stack "
     199  );
     200  puts( "TA1 - rtems_timer_initiate_server - RTEMS_UNSATISFIED" );
     201
    190202  status =
    191203    rtems_timer_initiate_server( RTEMS_TIMER_SERVER_DEFAULT_PRIORITY, 0, 0 );
    192204  directive_failed( status, "rtems_timer_initiate_server" );
    193   puts( "TA1 - rtems_timer_initiate_server" );
     205  puts( "TA1 - rtems_timer_initiate_server - SUCCESSFUL" );
    194206
    195207  status = rtems_timer_server_fire_after(
  • testsuites/sptests/sp09/sp09.scn

    rcd30436 r14a64dc5  
    105105TA1 - rtems_message_queue_create - Q 1 - RTEMS_INVALID_NAME
    106106TA1 - rtems_message_queue_create - Q 1 - RTEMS_MP_NOT_CONFIGURED
     107TA1 - rtems_message_queue_create - Q 2 - RTEMS_UNSATISFIED
    107108TA1 - rtems_message_queue_create - Q 1 - 2 DEEP - RTEMS_SUCCESSFUL
    108109TA1 - rtems_message_queue_create - Q 2 - RTEMS_TOO_MANY
     
    210211TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS
    211212TA1 - rtems_region_create - RTEMS_SUCCESSFUL
     213TA1 - rtems_region_extend - address within - RTEMS_INVALID_ADDRESS
    212214TA1 - rtems_region_create - RTEMS_TOO_MANY
    213215TA1 - rtems_region_delete - unknown RTEMS_INVALID_ID
     
    279281TA1 - rtems_timer_server_fire_when - RTEMS_INCORRECT_STATE
    280282TA1 - rtems_timer_initiate_server - RTEMS_INVALID_PRIORITY
    281 TA1 - rtems_timer_initiate_server
     283TA1 - rtems_timer_initiate_server - RTEMS_UNSATISFIED
     284TA1 - rtems_timer_initiate_server - SUCCESSFUL
    282285TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_ID
    283286TA1 - rtems_timer_server_fire_when - RTEMS_INVALID_ID
  • testsuites/sptests/sp12/pritask.c

    rcd30436 r14a64dc5  
    88 *  Output parameters:  NONE
    99 *
    10  *  COPYRIGHT (c) 1989-1999.
     10 *  COPYRIGHT (c) 1989-2007.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    5252  }
    5353
     54  /* special case of setting priority while holding a resource */
     55  {
     56    rtems_task_priority priority;
     57    rtems_task_priority old_priority;
     58
     59    puts( "Set priority of self while holding resource" );
     60    status =
     61      rtems_task_set_priority( RTEMS_SELF, RTEMS_CURRENT_PRIORITY, &priority );
     62    directive_failed( status, "rtems_task_set_priority get current" );
     63    status = rtems_task_set_priority( RTEMS_SELF, priority, &old_priority );
     64    directive_failed( status, "rtems_task_set_priority with resource" );
     65    if ( priority != old_priority ) {
     66      printf( "priority != old_priority (%d != %d)\n", priority, old_priority );
     67      rtems_test_exit(0);
     68    }
     69  }
     70
    5471  if ( its_index == 5 )
    5572    puts( "PRI5 - rtems_task_suspend - until all priority tasks blocked" );
  • testsuites/sptests/sp12/sp12.scn

    rcd30436 r14a64dc5  
    1818INIT - rtems_semaphore_delete - allocated binary semaphore
    1919PRI5 - rtems_semaphore_obtain - wait forever on SM2
     20Set priority of self while holding resource
    2021PRI5 - rtems_task_suspend - until all priority tasks blocked
    2122PDRV - priority of PRI5 is 67
     
    3637PRI5 - priority of PRI5 is 68
    3738<pause>
    38 TA1 - rtems_semaphore_ident - smid => 18010002
     39TA1 - rtems_semaphore_ident - smid => 1a010009
    3940TA1 - rtems_semaphore_obtain - wait forever on SM2
    4041TA1 - got SM2
Note: See TracChangeset for help on using the changeset viewer.