Changeset 36072c8a in rtems


Ignore:
Timestamp:
Nov 16, 1999, 8:47:30 PM (20 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ac0ba84
Parents:
3db81880
Message:

Added test case of rsm_tsk and frsm_tsk on a task not suspended.
This should result in nothing happening, but an E_OK result.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/itrontests/itrontask02/init.c

    r3db81880 r36072c8a  
    485485  fatal_directive_status( status, E_OBJ, "rsm_tsk DORMANT");
    486486
     487  puts( "Init - rsm_tsk - task is NON_DORMANT not suspended - E_OK" );
     488  status = rsm_tsk( NON_DORMANT_TASK_ID );
     489  fatal_directive_status( status, E_OK, "rsm_tsk NON_DORMANT");
     490
    487491  puts( "Init - rsm_tsk - task does not exist - E_NOEXS" );
    488492  status = rsm_tsk( 5 );
     
    517521  status = frsm_tsk( 5 );
    518522  fatal_directive_status( status, E_NOEXS, "frsm_tsk 5");
     523
     524  puts( "Init - frsm_tsk - task is NON_DORMANT not suspended - E_OK" );
     525  status = frsm_tsk( NON_DORMANT_TASK_ID );
     526  fatal_directive_status( status, E_OK, "frsm_tsk NON_DORMANT");
    519527
    520528#if (0)
     
    565573#endif
    566574
    567   puts( "*** ITRON TASK TEST 2 ***" );
     575  puts( "*** END OF ITRON TASK TEST 2 ***" );
    568576  exit( 0 );
    569577}
  • c/src/tests/itrontests/itrontask02/itrontask02.scn

    r3db81880 r36072c8a  
    55
    66*** Create Task Errors ***
    7 nit - cre_tsk - access violation ( id less than -4) - E_OACV
     7Init - cre_tsk - access violation ( id less than -4) - E_OACV
    88Init - cre_tsk - bad id (between 0 and -4) - E_ID
    99Init - cre_tsk - cannot create TSK_SELF  - E_ID
     
    6666Init - rsm_tsk - cannot resume SELF - E_OBJ
    6767Init - rsm_tsk - task is DORMANT - E_OBJ
     68Init - rsm_tsk - task is NON_DORMANT not suspended - E_OK
    6869Init - rsm_tsk - task does not exist - E_NOEXS
    6970
     
    7475Init - frsm_tsk - task is DORMANT - E_OBJ
    7576Init - frsm_tsk - task does not exist - E_NOEXS
     77Init - frsm_tsk - task is NON_DORMANT not suspended - E_OK
    7678
    7779*** END OF ITRON TASK TEST 2 ***
     80
  • testsuites/itrontests/itrontask02/init.c

    r3db81880 r36072c8a  
    485485  fatal_directive_status( status, E_OBJ, "rsm_tsk DORMANT");
    486486
     487  puts( "Init - rsm_tsk - task is NON_DORMANT not suspended - E_OK" );
     488  status = rsm_tsk( NON_DORMANT_TASK_ID );
     489  fatal_directive_status( status, E_OK, "rsm_tsk NON_DORMANT");
     490
    487491  puts( "Init - rsm_tsk - task does not exist - E_NOEXS" );
    488492  status = rsm_tsk( 5 );
     
    517521  status = frsm_tsk( 5 );
    518522  fatal_directive_status( status, E_NOEXS, "frsm_tsk 5");
     523
     524  puts( "Init - frsm_tsk - task is NON_DORMANT not suspended - E_OK" );
     525  status = frsm_tsk( NON_DORMANT_TASK_ID );
     526  fatal_directive_status( status, E_OK, "frsm_tsk NON_DORMANT");
    519527
    520528#if (0)
     
    565573#endif
    566574
    567   puts( "*** ITRON TASK TEST 2 ***" );
     575  puts( "*** END OF ITRON TASK TEST 2 ***" );
    568576  exit( 0 );
    569577}
  • testsuites/itrontests/itrontask02/itrontask02.scn

    r3db81880 r36072c8a  
    55
    66*** Create Task Errors ***
    7 nit - cre_tsk - access violation ( id less than -4) - E_OACV
     7Init - cre_tsk - access violation ( id less than -4) - E_OACV
    88Init - cre_tsk - bad id (between 0 and -4) - E_ID
    99Init - cre_tsk - cannot create TSK_SELF  - E_ID
     
    6666Init - rsm_tsk - cannot resume SELF - E_OBJ
    6767Init - rsm_tsk - task is DORMANT - E_OBJ
     68Init - rsm_tsk - task is NON_DORMANT not suspended - E_OK
    6869Init - rsm_tsk - task does not exist - E_NOEXS
    6970
     
    7475Init - frsm_tsk - task is DORMANT - E_OBJ
    7576Init - frsm_tsk - task does not exist - E_NOEXS
     77Init - frsm_tsk - task is NON_DORMANT not suspended - E_OK
    7678
    7779*** END OF ITRON TASK TEST 2 ***
     80
Note: See TracChangeset for help on using the changeset viewer.