[rtems commit] spcbssched02: Remove invalid test cases

Sebastian Huber sebh at rtems.org
Tue Feb 14 10:13:18 UTC 2017


Module:    rtems
Branch:    master
Commit:    ad25f10d5b20a373af932123deadadf8c9092b3b
Changeset: http://git.rtems.org/rtems/commit/?id=ad25f10d5b20a373af932123deadadf8c9092b3b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Feb 14 10:03:42 2017 +0100

spcbssched02: Remove invalid test cases

---

 testsuites/sptests/spcbssched02/init.c | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/testsuites/sptests/spcbssched02/init.c b/testsuites/sptests/spcbssched02/init.c
index 0bae0e9..acaf7a7 100644
--- a/testsuites/sptests/spcbssched02/init.c
+++ b/testsuites/sptests/spcbssched02/init.c
@@ -34,7 +34,7 @@ rtems_task Init(
   rtems_status_code status;
   rtems_cbs_server_id server_id, server_id2;
   time_t approved_budget, exec_time, abs_time, remaining_budget;
-  rtems_cbs_parameters params, params1, params2, params3, params4;
+  rtems_cbs_parameters params, params1, params3;
 
   Priority = 30;
   Period    = 30;
@@ -44,11 +44,9 @@ rtems_task Init(
   params.deadline = 1;
   params.budget = 1;
 
-  params1 = params2 = params3 = params4 = params;
+  params1 = params3 = params;
   params1.budget = -1;
-  params2.budget = SCHEDULER_EDF_PRIO_MSB + 1;
   params3.deadline = -1;
-  params4.deadline = SCHEDULER_EDF_PRIO_MSB + 1;
 
   TEST_BEGIN();
 
@@ -92,15 +90,9 @@ rtems_task Init(
   if ( rtems_cbs_create_server( &params1, NULL, &server_id ) !=
        SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
     printf( "ERROR: CREATE SERVER PASSED UNEXPECTEDLY\n" );
-  if ( rtems_cbs_create_server( &params2, NULL, &server_id ) !=
-       SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
-    printf( "ERROR: CREATE SERVER PASSED UNEXPECTEDLY\n" );
   if ( rtems_cbs_create_server( &params3, NULL, &server_id ) !=
        SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
     printf( "ERROR: CREATE SERVER PASSED UNEXPECTEDLY\n" );
-  if ( rtems_cbs_create_server( &params4, NULL, &server_id ) !=
-       SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
-    printf( "ERROR: CREATE SERVER PASSED UNEXPECTEDLY\n" );
   if ( rtems_cbs_create_server( &params, NULL, &server_id2 ) )
     printf( "ERROR: CREATE SERVER FAILED\n" );
   if ( rtems_cbs_create_server( &params, NULL, &server_id ) )
@@ -176,15 +168,9 @@ rtems_task Init(
   if ( rtems_cbs_set_parameters( server_id, &params1 ) !=
        SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
     printf( "ERROR: SET PARAMETERS PASSED UNEXPECTEDLY\n" );
-  if ( rtems_cbs_set_parameters( server_id, &params2 ) !=
-       SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
-    printf( "ERROR: SET PARAMETERS PASSED UNEXPECTEDLY\n" );
   if ( rtems_cbs_set_parameters( server_id, &params3 ) !=
        SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
     printf( "ERROR: SET PARAMETERS PASSED UNEXPECTEDLY\n" );
-  if ( rtems_cbs_set_parameters( server_id, &params4 ) !=
-       SCHEDULER_CBS_ERROR_INVALID_PARAMETER )
-    printf( "ERROR: SET PARAMETERS PASSED UNEXPECTEDLY\n" );
 
   /* Error checks for Get server id */
   printf( "Init: Get server id\n" );




More information about the vc mailing list