[rtems commit] spqreslib: Remove invalid test cases

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


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

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

spqreslib: Remove invalid test cases

---

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

diff --git a/testsuites/sptests/spqreslib/init.c b/testsuites/sptests/spqreslib/init.c
index 38d9999..d00b623 100644
--- a/testsuites/sptests/spqreslib/init.c
+++ b/testsuites/sptests/spqreslib/init.c
@@ -36,7 +36,7 @@ rtems_task Init(
   rtems_status_code status;
   qres_sid_t server_id, server_id2;
   time_t approved_budget, exec_time, abs_time, current_budget;
-  qres_params_t params, params1, params2, params3, params4;
+  qres_params_t params, params1, params3;
 
   Priority = 30;
   Period    = 30;
@@ -46,11 +46,9 @@ rtems_task Init(
   params.P = 1;
   params.Q = 1;
 
-  params1 = params2 = params3 = params4 = params;
+  params1 = params3 = params;
   params1.Q = -1;
-  params2.Q = SCHEDULER_EDF_PRIO_MSB + 1;
   params3.P = -1;
-  params4.P = SCHEDULER_EDF_PRIO_MSB + 1;
 
   TEST_BEGIN();
 
@@ -82,15 +80,9 @@ rtems_task Init(
   if ( qres_create_server( &params1, &server_id ) !=
        QOS_E_INVALID_PARAM )
     printf( "ERROR: CREATE SERVER PASSED UNEXPECTEDLY\n" );
-  if ( qres_create_server( &params2, &server_id ) !=
-       QOS_E_INVALID_PARAM )
-    printf( "ERROR: CREATE SERVER PASSED UNEXPECTEDLY\n" );
   if ( qres_create_server( &params3, &server_id ) !=
        QOS_E_INVALID_PARAM )
     printf( "ERROR: CREATE SERVER PASSED UNEXPECTEDLY\n" );
-  if ( qres_create_server( &params4, &server_id ) !=
-       QOS_E_INVALID_PARAM )
-    printf( "ERROR: CREATE SERVER PASSED UNEXPECTEDLY\n" );
   if ( qres_create_server( &params, &server_id2 ) )
     printf( "ERROR: CREATE SERVER FAILED\n" );
   if ( qres_create_server( &params, &server_id ) )
@@ -164,15 +156,9 @@ rtems_task Init(
   if ( qres_set_params( server_id, &params1 ) !=
        QOS_E_INVALID_PARAM )
     printf( "ERROR: SET PARAMS PASSED UNEXPECTEDLY\n" );
-  if ( qres_set_params( server_id, &params2 ) !=
-       QOS_E_INVALID_PARAM )
-    printf( "ERROR: SET PARAMS PASSED UNEXPECTEDLY\n" );
   if ( qres_set_params( server_id, &params3 ) !=
        QOS_E_INVALID_PARAM )
     printf( "ERROR: SET PARAMS PASSED UNEXPECTEDLY\n" );
-  if ( qres_set_params( server_id, &params4 ) !=
-       QOS_E_INVALID_PARAM )
-    printf( "ERROR: SET PARAMS PASSED UNEXPECTEDLY\n" );
 
   /* Error checks for Get server id */
   printf( "Init: Get server id\n" );




More information about the vc mailing list