Changeset ad25f10 in rtems


Ignore:
Timestamp:
Feb 14, 2017, 9:03:42 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
71ac0a6
Parents:
ecf53c8
Message:

spcbssched02: Remove invalid test cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spcbssched02/init.c

    recf53c8 rad25f10  
    3535  rtems_cbs_server_id server_id, server_id2;
    3636  time_t approved_budget, exec_time, abs_time, remaining_budget;
    37   rtems_cbs_parameters params, params1, params2, params3, params4;
     37  rtems_cbs_parameters params, params1, params3;
    3838
    3939  Priority = 30;
     
    4545  params.budget = 1;
    4646
    47   params1 = params2 = params3 = params4 = params;
     47  params1 = params3 = params;
    4848  params1.budget = -1;
    49   params2.budget = SCHEDULER_EDF_PRIO_MSB + 1;
    5049  params3.deadline = -1;
    51   params4.deadline = SCHEDULER_EDF_PRIO_MSB + 1;
    5250
    5351  TEST_BEGIN();
     
    9391       SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
    9492    printf( "ERROR: CREATE SERVER PASSED UNEXPECTEDLY\n" );
    95   if ( rtems_cbs_create_server( &params2, NULL, &server_id ) !=
    96        SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
    97     printf( "ERROR: CREATE SERVER PASSED UNEXPECTEDLY\n" );
    9893  if ( rtems_cbs_create_server( &params3, NULL, &server_id ) !=
    99        SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
    100     printf( "ERROR: CREATE SERVER PASSED UNEXPECTEDLY\n" );
    101   if ( rtems_cbs_create_server( &params4, NULL, &server_id ) !=
    10294       SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
    10395    printf( "ERROR: CREATE SERVER PASSED UNEXPECTEDLY\n" );
     
    177169       SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
    178170    printf( "ERROR: SET PARAMETERS PASSED UNEXPECTEDLY\n" );
    179   if ( rtems_cbs_set_parameters( server_id, &params2 ) !=
    180        SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
    181     printf( "ERROR: SET PARAMETERS PASSED UNEXPECTEDLY\n" );
    182171  if ( rtems_cbs_set_parameters( server_id, &params3 ) !=
    183        SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
    184     printf( "ERROR: SET PARAMETERS PASSED UNEXPECTEDLY\n" );
    185   if ( rtems_cbs_set_parameters( server_id, &params4 ) !=
    186172       SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
    187173    printf( "ERROR: SET PARAMETERS PASSED UNEXPECTEDLY\n" );
Note: See TracChangeset for help on using the changeset viewer.