Changeset f55f605 in rtems


Ignore:
Timestamp:
Sep 28, 2009, 11:07:56 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
bfd225e
Parents:
6fd4d06f
Message:

2009-09-28 Joel Sherrill <joel.sherrill@…>

  • sp09/screen01.c, sp09/screen02.c, sp09/screen03.c, sp09/screen05.c, sp09/screen09.c, sp09/screen14.c, sp09/sp09.scn, sp28/init.c, sp28/sp28.scn, sp43/init.c: Add more error cases uncovered by uC5282 coverage runs.
Location:
testsuites/sptests
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r6fd4d06f rf55f605  
     12009-09-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * sp09/screen01.c, sp09/screen02.c, sp09/screen03.c, sp09/screen05.c,
     4        sp09/screen09.c, sp09/screen14.c, sp09/sp09.scn, sp28/init.c,
     5        sp28/sp28.scn, sp43/init.c: Add more error cases uncovered by uC5282
     6        coverage runs.
     7
    182009-09-28      Joel Sherrill <joel.sherrill@OARcorp.com>
    29
  • testsuites/sptests/sp09/screen01.c

    r6fd4d06f rf55f605  
    3535  puts( "TA1 - rtems_task_delete - RTEMS_INVALID_ID" );
    3636
     37  /* NULL return */
     38  status = rtems_task_get_note( RTEMS_SELF, RTEMS_NOTEPAD_FIRST, NULL );
     39  fatal_directive_status(
     40    status,
     41    RTEMS_INVALID_ADDRESS,
     42    "rtems_task_get_note with NULL param"
     43  );
     44  puts( "TA1 - rtems_task_get_note - RTEMS_INVALID_ADDRESS" );
     45
     46  /* note too high */
    3747  status = rtems_task_get_note( RTEMS_SELF, 100, &notepad_value );
    3848  fatal_directive_status(
     
    4353  puts( "TA1 - rtems_task_get_note - RTEMS_INVALID_NUMBER" );
    4454
     55  /* bad Id */
    4556  status = rtems_task_get_note( 100, RTEMS_NOTEPAD_LAST, &notepad_value );
    4657  fatal_directive_status(
     
    5162  puts( "TA1 - rtems_task_get_note - RTEMS_INVALID_ID" );
    5263
     64  /* unused Id so invalid now */
    5365  status = rtems_task_get_note(
    5466    _RTEMS_tasks_Information.maximum_id,
     
    91103    &notepad_value
    92104  );
    93   fatal_directive_status( status, RTEMS_INVALID_ID,
     105  fatal_directive_status(
     106    status,
     107    RTEMS_INVALID_ID,
    94108    "rtems_task_get_note with no tasks in API"
    95109  );
     
    104118  );
    105119
     120  /* NULL param */
     121  status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, NULL );
     122  fatal_directive_status(
     123    status,
     124    RTEMS_INVALID_ADDRESS,
     125    "rtems_task_ident NULL param"
     126  );
     127  puts( "TA1 - rtems_task_ident - RTEMS_INVALID_ADDRESS" );
     128
     129  /* OK */
    106130  status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &self_id );
    107131  directive_failed( status, "rtems_task_ident of self" );
     
    171195  puts( "TA1 - rtems_task_resume - RTEMS_INCORRECT_STATE" );
    172196
     197  /* NULL param */
     198  status = rtems_task_set_priority( RTEMS_SELF, RTEMS_CURRENT_PRIORITY, NULL );
     199  fatal_directive_status(
     200    status,
     201    RTEMS_INVALID_ADDRESS,
     202    "rtems_task_set_priority with NULL param"
     203  );
     204  puts( "TA1 - rtems_task_set_priority - RTEMS_INVALID_ADDRESS" );
     205
     206  /* bad priority */
    173207  status = rtems_task_set_priority( RTEMS_SELF, 512, &previous_priority );
    174208  fatal_directive_status(
     
    179213  puts( "TA1 - rtems_task_set_priority - RTEMS_INVALID_PRIORITY" );
    180214
     215  /* bad Id */
    181216  status = rtems_task_set_priority( 100, 8, &previous_priority );
    182217  fatal_directive_status(
     
    215250  puts( "TA1 - rtems_task_start - RTEMS_INVALID_ID" );
    216251
    217   status = rtems_task_start( 0, Task_1, 0 );
     252  /* already started */
     253  status = rtems_task_start( RTEMS_SELF, Task_1, 0 );
    218254  fatal_directive_status(
    219255    status,
     
    223259  puts( "TA1 - rtems_task_start - RTEMS_INCORRECT_STATE" );
    224260
     261  /* bad Id */
    225262  status = rtems_task_suspend( 100 );
    226263  fatal_directive_status(
     
    230267  );
    231268  puts( "TA1 - rtems_task_suspend - RTEMS_INVALID_ID" );
     269
     270  /* NULL param */
     271  status = rtems_task_mode( RTEMS_SELF, 0, NULL );
     272  fatal_directive_status(
     273    status,
     274    RTEMS_INVALID_ADDRESS,
     275    "rtems_task_mode with NULL param"
     276  );
     277  puts( "TA1 - rtems_task_mode - RTEMS_INVALID_ADDRESS" );
    232278}
  • testsuites/sptests/sp09/screen02.c

    r6fd4d06f rf55f605  
    140140  puts( "TA1 - rtems_clock_get - RTEMS_INVALID_NUMBER" );
    141141
     142  /* wake when NULL param */
     143  status = rtems_task_wake_when( NULL );
     144  fatal_directive_status(
     145    status,
     146    RTEMS_NOT_DEFINED,
     147    "rtems_task_wake_when NULL param"
     148  );
     149  puts( "TA1 - rtems_task_wake_when - RTEMS_INVALID_ADDRESS" );
     150
     151  /* wake when before set */
    142152  status = rtems_task_wake_when( &time );
    143153  if ( status == RTEMS_SUCCESSFUL ) {
     
    155165  }
    156166
     167  /* before time set */
    157168  status = rtems_timer_fire_when( 0, &time, Delayed_routine, NULL );
    158169  if ( status == RTEMS_SUCCESSFUL ) {
     
    258269  puts( "TA1 - rtems_task_wake_when - TICKINVALID - sleep about 3 seconds" );
    259270
     271  /* NULL time */
     272  status = rtems_task_wake_when( NULL );
     273  fatal_directive_status(
     274    status,
     275    RTEMS_INVALID_ADDRESS,
     276    "rtems_task_wake_when with NULL"
     277  );
     278  puts( "TA1 - rtems_task_wake_when - RTEMS_INVALID_ADDRESS" );
     279
     280  /* invalid ticks */
    260281  status = rtems_task_wake_when( &time );
    261282  directive_failed(
  • testsuites/sptests/sp09/screen03.c

    r6fd4d06f rf55f605  
    2525  bool              skipUnsatisfied;
    2626
     27  /* task create bad name */
    2728  task_name = 1;
    2829  status = rtems_task_create(
     
    4041  );
    4142  puts( "TA1 - rtems_task_create - RTEMS_INVALID_NAME" );
     43
     44  /* null ID */
     45  status = rtems_task_create(
     46    Task_name[ 1 ],
     47    4,
     48    RTEMS_MINIMUM_STACK_SIZE,
     49    RTEMS_DEFAULT_MODES,
     50    RTEMS_DEFAULT_ATTRIBUTES,
     51    NULL
     52  );
     53  fatal_directive_status(
     54    status,
     55    RTEMS_INVALID_ADDRESS,
     56    "rtems_task_create with NULL ID param"
     57  );
     58  puts( "TA1 - rtems_task_create - RTEMS_INVALID_ADDRESS" );
    4259
    4360  /*
  • testsuites/sptests/sp09/screen05.c

    r6fd4d06f rf55f605  
    2323  rtems_status_code status;
    2424
     25  /* invalid name */
    2526  status = rtems_semaphore_create(
    2627    0,
     
    3738  puts( "TA1 - rtems_semaphore_create - RTEMS_INVALID_NAME" );
    3839
     40  /* NULL Id parameter */
     41  status = rtems_semaphore_create(
     42    Semaphore_name[ 1 ],
     43    1,
     44    RTEMS_DEFAULT_ATTRIBUTES,
     45    RTEMS_NO_PRIORITY,
     46    NULL
     47  );
     48  fatal_directive_status(
     49    status,
     50    RTEMS_INVALID_ADDRESS,
     51    "rtems_semaphore_create with NULL param"
     52  );
     53  puts( "TA1 - rtems_semaphore_create - RTEMS_INVALID_ADDRESS" );
     54
     55  /* OK */
    3956  status = rtems_semaphore_create(
    4057    Semaphore_name[ 1 ],
  • testsuites/sptests/sp09/screen09.c

    r6fd4d06f rf55f605  
    6464  #endif
    6565
     66  /* send invalid id */
    6667  status = rtems_signal_send( 100, RTEMS_SIGNAL_1 );
    6768  fatal_directive_status(
     
    7273  puts( "TA1 - rtems_signal_send - RTEMS_INVALID_ID" );
    7374
     75  /* no signal in set */
     76  status = rtems_signal_send( RTEMS_SELF, 0 );
     77  fatal_directive_status(
     78    status,
     79    RTEMS_INVALID_NUMBER,
     80    "rtems_signal_send with no signals"
     81  );
     82  puts( "TA1 - rtems_signal_send - RTEMS_INVALID_NUMBER" );
     83
     84  /* no signal handler */
    7485  status = rtems_signal_send( RTEMS_SELF, RTEMS_SIGNAL_16 );
    7586  fatal_directive_status(
  • testsuites/sptests/sp09/screen14.c

    r6fd4d06f rf55f605  
    2626  bool                    skipUnsatisfied;
    2727
     28  /* NULL Id */
     29  status = rtems_timer_create( Timer_name[ 1 ], NULL );
     30  fatal_directive_status(
     31    status,
     32    RTEMS_INVALID_ADDRESS,
     33    "rtems_timer_create NULL param"
     34  );
     35  puts( "TA1 - rtems_timer_create - RTEMS_INVALID_ADDRESS" );
     36
     37  /* bad name */
    2838  status = rtems_timer_create( 0, &Junk_id );
    2939  fatal_directive_status(
     
    3444  puts( "TA1 - rtems_timer_create - RTEMS_INVALID_NAME" );
    3545
     46  /* OK */
    3647  status = rtems_timer_create( Timer_name[ 1 ], &Timer_id[ 1 ] );
    3748  directive_failed( status, "rtems_timer_create" );
     
    94105  puts( "TA1 - rtems_timer_reset - RTEMS_NOT_DEFINED" );
    95106
     107  /* bad id */
    96108  status = rtems_timer_fire_after(
    97109    rtems_build_id( 1, 1, 1, 256 ),
     
    107119  puts( "TA1 - rtems_timer_fire_after - RTEMS_INVALID_ID" );
    108120
     121  /* bad id */
    109122  build_time( &time, 12, 31, 1994, 9, 0, 0, 0 );
    110123  status = rtems_timer_fire_when(
     
    121134  puts( "TA1 - rtems_timer_fire_when - RTEMS_INVALID_ID" );
    122135
     136  /* NULL routine */
     137  status = rtems_timer_fire_after( Timer_id[ 1 ], 1, NULL, NULL );
     138  fatal_directive_status(
     139    status,
     140    RTEMS_INVALID_ADDRESS,
     141    "rtems_timer_fire_after with NULL handler"
     142  );
     143  puts( "TA1 - rtems_timer_fire_after - RTEMS_INVALID_ADDRESS" );
     144
     145  /* 0 ticks */
    123146  status = rtems_timer_fire_after( Timer_id[ 1 ], 0, Delayed_routine, NULL );
    124147  fatal_directive_status(
     
    129152  puts( "TA1 - rtems_timer_fire_after - RTEMS_INVALID_NUMBER" );
    130153
     154  /* NULL routine */
     155  status = rtems_timer_fire_when( Timer_id[ 1 ], &time, NULL, NULL );
     156  fatal_directive_status(
     157    status,
     158    RTEMS_INVALID_ADDRESS,
     159    "rtems_timer_fire_when with NULL handler"
     160  );
     161  puts( "TA1 - rtems_timer_fire_when - RTEMS_INVALID_ADDRESS" );
     162 
     163  /* invalid time -- before RTEMS epoch */
    131164  build_time( &time, 2, 5, 1987, 8, 30, 45, 0 );
    132165  status = rtems_timer_fire_when( Timer_id[ 1 ], &time, Delayed_routine, NULL );
     
    159192  );
    160193
     194  /* null param */
     195  status = rtems_timer_get_information( Timer_id[ 1 ], NULL );
     196  fatal_directive_status(
     197    status,
     198    RTEMS_INVALID_ADDRESS,
     199    "rtems_timer_get_information with NULL param"
     200  );
     201  puts( "TA1 - rtems_timer_get_information - RTEMS_INVALID_ADDRESS" );
     202
     203  /* invalid id */
    161204  status = rtems_timer_get_information( 100, &timer_info );
    162205  fatal_directive_status(
     
    169212/* timer server interface routines */
    170213
     214  /* incorrect state */
    171215  status = rtems_timer_server_fire_after( 0, 5, NULL, NULL );
    172216  fatal_directive_status(
     
    177221  puts( "TA1 - rtems_timer_server_fire_after - RTEMS_INCORRECT_STATE" );
    178222
     223  /* incorrect state */
    179224  status = rtems_timer_server_fire_when( 0, &time, NULL, NULL );
    180225  fatal_directive_status(
     
    185230  puts( "TA1 - rtems_timer_server_fire_when - RTEMS_INCORRECT_STATE" );
    186231
    187   status =
    188     rtems_timer_initiate_server( 0, 0, 0 );
     232  /* invalid priority */
     233  status = rtems_timer_initiate_server( 0, 0, 0 );
    189234  fatal_directive_status(
    190235    status,
     
    219264  puts( "TA1 - rtems_timer_initiate_server - SUCCESSFUL" );
    220265
     266  /* NULL routine */
     267  status = rtems_timer_server_fire_after( Timer_id[ 1 ], 1, NULL, NULL );
     268  fatal_directive_status(
     269    status,
     270    RTEMS_INVALID_ADDRESS,
     271    "rtems_timer_server_fire_after NULL routine"
     272  );
     273  puts( "TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_ADDRESS" );
     274
     275  /* bad Id */
    221276  status = rtems_timer_server_fire_after(
    222277    rtems_build_id( 1, 1, 1, 256 ),
     
    232287  puts( "TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_ID" );
    233288
     289  /* bad id */
    234290  build_time( &time, 12, 31, 1994, 9, 0, 0, 0 );
    235291  status = rtems_timer_server_fire_when(
     
    246302  puts( "TA1 - rtems_timer_server_fire_when - RTEMS_INVALID_ID" );
    247303
    248   status = rtems_timer_server_fire_after( Timer_id[ 1 ], 0, Delayed_routine, NULL );
     304  /* NULL routine */
     305  status = rtems_timer_server_fire_after( Timer_id[ 1 ], 1, NULL, NULL );
     306  fatal_directive_status(
     307    status,
     308    RTEMS_INVALID_ADDRESS,
     309    "rtems_timer_server_fire_after NULL routine"
     310  );
     311  puts( "TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_ADDRESS" );
     312
     313  /* 0 ticks */
     314  status = rtems_timer_server_fire_after(
     315    Timer_id[ 1 ], 0, Delayed_routine, NULL );
    249316  fatal_directive_status(
    250317    status,
     
    254321  puts( "TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_NUMBER" );
    255322
     323  /* illegal time */
    256324  build_time( &time, 2, 5, 1987, 8, 30, 45, 0 );
    257   status = rtems_timer_server_fire_when( Timer_id[ 1 ], &time, Delayed_routine, NULL );
     325  status = rtems_timer_server_fire_when(
     326    Timer_id[ 1 ], &time, Delayed_routine, NULL );
    258327  fatal_directive_status(
    259328    status,
     
    271340  print_time( "TA1 - rtems_clock_get_tod       - ", &time, "\n" );
    272341
     342  /* when NULL routine */
     343  status = rtems_timer_server_fire_when( Timer_id[ 1 ], &time, NULL, NULL );
     344  fatal_directive_status(
     345    status,
     346    RTEMS_INVALID_ADDRESS,
     347    "rtems_timer_server_fire_when NULL routine"
     348  );
     349  puts( "TA1 - rtems_timer_server_fire_when - RTEMS_INVALID_ADDRESS" );
     350
     351  /* before current time */
    273352  build_time( &time, 2, 5, 1990, 8, 30, 45, 0 );
    274353  status = rtems_timer_server_fire_when(
     
    284363    " - before RTEMS_INVALID_CLOCK\n"
    285364  );
     365
    286366}
  • testsuites/sptests/sp09/sp09.scn

    r6fd4d06f rf55f605  
    33INIT - rtems_task_restart - RTEMS_INCORRECT_STATE
    44TA1 - rtems_task_delete - RTEMS_INVALID_ID
     5TA1 - rtems_task_get_note - RTEMS_INVALID_ADDRESS
    56TA1 - rtems_task_get_note - RTEMS_INVALID_NUMBER
    67TA1 - rtems_task_get_note - RTEMS_INVALID_ID
     
    89TA1 - rtems_task_get_note - RTEMS_INVALID_ID (no tasks in API)
    910TA1 - rtems_object_get_classic_name - bad ID
     11TA1 - rtems_task_ident - RTEMS_INVALID_ADDRESS
    1012TA1 - rtems_task_ident - current task RTEMS_SUCCESSFUL
    1113TA1 - rtems_task_ident - global RTEMS_INVALID_NAME
     
    1517TA1 - rtems_task_resume - RTEMS_INVALID_ID
    1618TA1 - rtems_task_resume - RTEMS_INCORRECT_STATE
     19TA1 - rtems_task_set_priority - RTEMS_INVALID_ADDRESS
    1720TA1 - rtems_task_set_priority - RTEMS_INVALID_PRIORITY
    1821TA1 - rtems_task_set_priority - RTEMS_INVALID_ID
     
    2225TA1 - rtems_task_start - RTEMS_INCORRECT_STATE
    2326TA1 - rtems_task_suspend - RTEMS_INVALID_ID
     27TA1 - rtems_task_mode - RTEMS_INVALID_ADDRESS
    2428<pause - screen 2>
    2529TA1 - rtems_clock_get_tod - RTEMS_INVALID_ADDRESS
    2630TA1 - rtems_clock_get_tod - RTEMS_NOT_DEFINED
    2731TA1 - rtems_clock_get_seconds_since_epoch - RTEMS_INVALID_ADDRESS
    28 TA1 - rtems_clock_get_second_since_epoch - RTEMS_NOT_DEFINED
     32TA1 - rtems_clock_get_seconds_since_epoch - RTEMS_NOT_DEFINED
    2933TA1 - rtems_clock_get_uptime - RTEMS_INVALID_ADDRESS
    3034TA1 - rtems_clock_get_tod_timeval - RTEMS_INVALID_ADDRESS
     
    3438TA1 - rtems_clock_get - RTEMS_INVALID_ADDRESS
    3539TA1 - rtems_clock_get - RTEMS_INVALID_NUMBER
     40TA1 - rtems_task_wake_when - RTEMS_INVALID_ADDRESS
    3641TA1 - rtems_task_wake_when - RTEMS_NOT_DEFINED
    3742TA1 - rtems_timer_fire_when - RTEMS_NOT_DEFINED
     
    4550TA1 - rtems_clock_set - 08:30:45   02/05/1988 - RTEMS_SUCCESSFUL
    4651TA1 - rtems_task_wake_when - TICKINVALID - sleep about 3 seconds
     52TA1 - rtems_task_wake_when - RTEMS_INVALID_ADDRESS
    4753TA1 - rtems_task_wake_when - TICKINVALID - woke up RTEMS_SUCCESSFUL
    4854TA1 - rtems_task_wake_when - 08:30:48   02/05/1961 - RTEMS_INVALID_CLOCK
     
    5258<pause - screen 3>
    5359TA1 - rtems_task_create - RTEMS_INVALID_NAME
     60TA1 - rtems_task_create - RTEMS_INVALID_ADDRESS
    5461TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED
    5562TA1 - rtems_task_create - TA2 created - RTEMS_SUCCESSFUL
     
    7784TA1 - rtems_clock_set - 08:30:45   02/05/1988 - RTEMS_SUCCESSFUL
    7885TA1 - current time - Fri Feb  5 08:30:45 1988
     86
    7987<pause - screen 5>
    8088TA1 - rtems_semaphore_create - RTEMS_INVALID_NAME
     89TA1 - rtems_semaphore_create - RTEMS_INVALID_ADDRESS
    8190TA1 - rtems_semaphore_create - 1 - RTEMS_SUCCESSFUL
    8291TA1 - rtems_semaphore_create - 2 - RTEMS_SUCCESSFUL
     
    127136TA1 - rtems_message_queue_get_number_pending - RTEMS_INVALID_ADDRESS
    128137TA1 - rtems_message_queue_get_number_pending - RTEMS_INVALID_ID
     138TA1 - rtems_message_queue_flush - RTEMS_INVALID_ADDRESS
    129139TA1 - rtems_message_queue_flush - RTEMS_INVALID_ID
    130140TA1 - rtems_message_queue_receive - RTEMS_INVALID_ID
     
    134144TA1 - rtems_message_queue_receive - Q 1 - timeout in 3 seconds
    135145TA1 - rtems_message_queue_receive - Q 1 - woke up with RTEMS_TIMEOUT
    136 TA1 - rtems_message_queue_send - RTEMS_INVALID_ADDRESS
     146TA1 - rtems_message_queue_send - NULL buffer - RTEMS_INVALID_ADDRESS
    137147TA1 - rtems_message_queue_send - RTEMS_INVALID_ID
    138148TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1 - RTEMS_SUCCESSFUL
    139149TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1 - RTEMS_SUCCESSFUL
    140150TA1 - rtems_message_queue_send - BUFFER 3 TO Q 1 - RTEMS_TOO_MANY
    141 TA1 - rtems_message_queue_urgent - RTEMS_INVALID_ADDRESS
     151TA1 - rtems_message_queue_urgent - NULL buffer - RTEMS_INVALID_ADDRESS
    142152TA1 - rtems_message_queue_urgent - RTEMS_INVALID_ID
    143153TA1 - rtems_message_queue_broadcast - NULL buffer - RTEMS_INVALID_ADDRESS
     
    169179TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS
    170180TA1 - rtems_signal_send - RTEMS_INVALID_ID
     181TA1 - rtems_signal_send - RTEMS_INVALID_NUMBER
    171182TA1 - rtems_signal_send - RTEMS_NOT_DEFINED
    172183TA1 - rtems_port_create - RTEMS_INVALID_NAME
     
    176187TA1 - rtems_port_delete - RTEMS_INVALID_ID
    177188TA1 - rtems_port_ident - RTEMS_INVALID_NAME
    178 TA1 - rtems_port_external_to_internal - RTEMS_INVALID_ID
    179189TA1 - rtems_port_external_to_internal - RTEMS_INVALID_ADDRESS
    180190TA1 - rtems_port_internal_to_external - RTEMS_INVALID_ID
    181 TA1 - rtems_port_internal_to_external - RTEMS_INVALID_ADDRESS
     191TA1 - rtems_port_external_to_internal - RTEMS_INVALID_ADDRESS
    182192<pause - screen 10>
    183193TA1 - rtems_rate_monotonic_create - RTEMS_INVALID_ADDRESS
     
    251261TA1 - rtems_region_get_segment - 0 size - RTEMS_INVALID_SIZE
    252262TA1 - rtems_region_get_segment - too big - RTEMS_INVALID_SIZE
    253 TA1 - rtems_region_get_segment - RTEMS_INVALID_SIZE
    254263TA1 - rtems_region_get_segment - RTEMS_SUCCESSFUL
    255264TA1 - rtems_region_get_segment - RTEMS_UNSATISFIED
     
    284293TA1 - rtems_clock_get_tod - 00:00:00   01/01/2001 - RTEMS_SUCCESSFUL
    285294TA1 - rtems_clock_set - 23:59:59   12/31/1999 - RTEMS_SUCCESSFUL
    286 TA1 - rtems_clock_get_tod - 00:00:00   01/01/2000 - RTEMS_SUCCESSFUL
     295TA1 - rtems_clock_get - 00:00:00   01/01/2000 - RTEMS_SUCCESSFUL
    287296TA1 - rtems_clock_set - 23:59:59   12/31/2100 - RTEMS_SUCCESSFUL
    288297TA1 - rtems_clock_get_tod - 17:31:44   11/25/1964 - RTEMS_SUCCESSFUL
     
    292301TA1 - rtems_clock_get_tod - 00:00:00   01/01/1992 - RTEMS_SUCCESSFUL
    293302<pause - screen 14>
     303TA1 - rtems_timer_create - RTEMS_INVALID_ADDRESS
    294304TA1 - rtems_timer_create - RTEMS_INVALID_NAME
    295305TA1 - rtems_timer_create - 1 - RTEMS_SUCCESSFUL
     
    303313TA1 - rtems_timer_fire_after - RTEMS_INVALID_ID
    304314TA1 - rtems_timer_fire_when - RTEMS_INVALID_ID
     315TA1 - rtems_timer_fire_after - RTEMS_INVALID_ADDRESS
    305316TA1 - rtems_timer_fire_after - RTEMS_INVALID_NUMBER
     317TA1 - rtems_timer_fire_when - RTEMS_INVALID_ADDRESS
    306318TA1 - rtems_timer_fire_when - 08:30:45   02/05/1987 - RTEMS_INVALID_CLOCK
    307319TA1 - rtems_clock_get_tod       - 00:00:00   01/01/1992
    308320TA1 - rtems_timer_fire_when - 08:30:45   02/05/1990 - before RTEMS_INVALID_CLOCK
     321TA1 - rtems_timer_get_information - RTEMS_INVALID_ADDRESS
    309322TA1 - rtems_timer_get_information - RTEMS_INVALID_ID
    310323TA1 - rtems_timer_server_fire_after - RTEMS_INCORRECT_STATE
     
    313326TA1 - rtems_timer_initiate_server - RTEMS_UNSATISFIED
    314327TA1 - rtems_timer_initiate_server - SUCCESSFUL
     328TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_ADDRESS
    315329TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_ID
    316330TA1 - rtems_timer_server_fire_when - RTEMS_INVALID_ID
     331TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_ADDRESS
    317332TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_NUMBER
    318333TA1 - rtems_timer_server_fire_when - 08:30:45   02/05/1987 - RTEMS_INVALID_CLOCK
    319334TA1 - rtems_clock_get_tod       - 00:00:00   01/01/1992
     335TA1 - rtems_timer_server_fire_when - RTEMS_INVALID_ADDRESS
    320336TA1 - rtems_timer_server_fire_when - 08:30:45   02/05/1990 - before RTEMS_INVALID_CLOCK
    321337*** END OF TEST 9 ***
  • testsuites/sptests/sp28/init.c

    r6fd4d06f rf55f605  
    117117
    118118  /*
     119   *  task variable add error status codes
     120   */
     121  puts( "task variable add - NULL pointer - RTEMS_INVALID_ADDRESS" );
     122  sc = rtems_task_variable_get(RTEMS_SELF, NULL, NULL );
     123  fatal_directive_status( sc, RTEMS_INVALID_ADDRESS, "add NULL pointer" );
     124
     125  /*
    119126   *  task variable get error status codes
    120127   */
  • testsuites/sptests/sp28/sp28.scn

    r6fd4d06f rf55f605  
    11*** START OF TEST 28 ***
     2task variable add - NULL pointer - RTEMS_INVALID_ADDRESS
    23task variable get - bad Id - RTEMS_INVALID_ID
    34task variable get - NULL pointer - RTEMS_INVALID_ADDRESS
  • testsuites/sptests/sp43/init.c

    r6fd4d06f rf55f605  
    202202   */
    203203
     204  puts( "rtems_object_set_name - INVALID_ADDRESS" );
     205  sc = rtems_object_set_name( tmpId, NULL );
     206  fatal_directive_status(
     207    sc,
     208    RTEMS_INVALID_ADDRESS,
     209    "rtems_object_set_name INVALID_ADDRESS"
     210  );
     211
    204212  puts( "rtems_object_set_name - INVALID_ID (bad API)" );
    205213  tmpId = rtems_build_id( 0xff, OBJECTS_RTEMS_TASKS, 1, 1 ),
Note: See TracChangeset for help on using the changeset viewer.