Changeset 9688f466 in rtems


Ignore:
Timestamp:
Jul 14, 2010, 7:33:56 AM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
a7202f6
Parents:
dd38f3d9
Message:

2010-07-14 Sebastian Huber <sebastian.huber@…>

  • spintrcritical06/init.c: Switch semaphore obtain timeouts of variants. Cleanup.
  • spintrcritical05/spintrcritical05.scn, spintrcritical06/spintrcritical06.scn, spintrcritical07/spintrcritical07.scn, spintrcritical11/spintrcritical11.scn, spintrcritical12/spintrcritical12.scn, spintrcritical13/spintrcritical13.scn, spintrcritical14/spintrcritical14.scn: Update.
Location:
testsuites/sptests
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rdd38f3d9 r9688f466  
     12010-07-14      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * spintrcritical06/init.c: Switch semaphore obtain timeouts of
     4        variants.  Cleanup.
     5        * spintrcritical05/spintrcritical05.scn,
     6        spintrcritical06/spintrcritical06.scn,
     7        spintrcritical07/spintrcritical07.scn,
     8        spintrcritical11/spintrcritical11.scn,
     9        spintrcritical12/spintrcritical12.scn,
     10        spintrcritical13/spintrcritical13.scn,
     11        spintrcritical14/spintrcritical14.scn: Update.
     12
    1132010-07-08      Joel Sherrill <joel.sherrill@oarcorp.com>
    214
  • testsuites/sptests/spintrcritical05/spintrcritical05.scn

    rdd38f3d9 r9688f466  
    44Support - rtems_timer_create - creating timer 1
    55Init - Case hit
    6 *** END OF TEST INTERRUPT CRITICAL SECTION 01 ***
     6*** END OF TEST INTERRUPT CRITICAL SECTION 05 ***
  • testsuites/sptests/spintrcritical06/init.c

    rdd38f3d9 r9688f466  
    2323  #define INIT_PRIORITY      2
    2424  #define BLOCKER_PRIORITY   1
    25   #define SEMAPHORE_OBTAIN_TIMEOUT 0
     25  #define SEMAPHORE_OBTAIN_TIMEOUT 2
    2626
    2727#elif defined(PRIORITY_NO_TIMEOUT_REVERSE)
     
    3030  #define INIT_PRIORITY      126
    3131  #define BLOCKER_PRIORITY   127
    32   #define SEMAPHORE_OBTAIN_TIMEOUT 2
     32  #define SEMAPHORE_OBTAIN_TIMEOUT 0
    3333
    3434#else
     
    3737#endif
    3838
    39 rtems_id Main_task;
    4039rtems_id Secondary_task_id;
    4140rtems_id Semaphore;
    42 
    43 Thread_blocking_operation_States getState(void)
    44 {
    45   Objects_Locations  location;
    46   Semaphore_Control *sem;
    47 
    48   sem = (Semaphore_Control *)_Objects_Get(
    49     &_Semaphore_Information, Semaphore, &location );
    50   if ( location != OBJECTS_LOCAL ) {
    51     puts( "Bad object lookup" );
    52     rtems_test_exit(0);
    53   }
    54   _Thread_Unnest_dispatch();
    55 
    56   return sem->Core_control.semaphore.Wait_queue.sync_state;
    57 }
    5841
    5942rtems_timer_service_routine test_release_from_isr(
     
    6952)
    7053{
    71   rtems_status_code     status;
    72 
    7354  if ( arg )
    7455    (void) rtems_semaphore_flush( Semaphore );
    7556
    76   status = rtems_semaphore_obtain(
     57  (void) rtems_semaphore_obtain(
    7758    Semaphore,
    7859    RTEMS_DEFAULT_OPTIONS,
    79     SEMAPHORE_OBTAIN_TIMEOUT
     60    RTEMS_NO_TIMEOUT
    8061  );
    81   directive_failed( status, "rtems_semaphore_obtain" );
     62
     63  rtems_test_assert(0);
    8264}
    8365
     
    10284  );
    10385  directive_failed( status, "rtems_semaphore_create of SM1" );
    104 
    105   Main_task = rtems_task_self();
    10686
    10787  status = rtems_task_create(
  • testsuites/sptests/spintrcritical06/spintrcritical06.scn

    rdd38f3d9 r9688f466  
    11*** TEST INTERRUPT CRITICAL SECTION 06 ***
    22Init - Trying to generate semaphore release from ISR while blocking
    3 Init - Variation is: Priority/Without Timeout/Multiple Tasks (Forward)
     3Init - There is no way for the test to know if it hits the case
     4Init - Variation is: Priority/Restart Search Task (Forward)
    45Support - rtems_timer_create - creating timer 1
    56*** END OF TEST INTERRUPT CRITICAL SECTION 06 ***
  • testsuites/sptests/spintrcritical07/spintrcritical07.scn

    rdd38f3d9 r9688f466  
    11*** TEST INTERRUPT CRITICAL SECTION 07 ***
    22Init - Trying to generate semaphore release from ISR while blocking
    3 Init - Variation is: Priority/Without Timeout/Multiple Tasks (Forward)
     3Init - There is no way for the test to know if it hits the case
     4Init - Variation is: Priority/Restart Search Task (Backward)
    45Support - rtems_timer_create - creating timer 1
    56*** END OF TEST INTERRUPT CRITICAL SECTION 07 ***
  • testsuites/sptests/spintrcritical11/spintrcritical11.scn

    rdd38f3d9 r9688f466  
    22Init - Test may not be able to detect case is hit reliably
    33Init - Trying to generate event send from ISR while blocking
     4Init - Variation is: Event Any condition
    45Support - rtems_timer_create - creating timer 1
    56*** END OF TEST INTERRUPT CRITICAL SECTION 11 ***
  • testsuites/sptests/spintrcritical12/spintrcritical12.scn

    rdd38f3d9 r9688f466  
    1 *** TEST INTERRUPT CRITICAL SECTION 11 ***
     1*** TEST INTERRUPT CRITICAL SECTION 12 ***
    22Init - Test may not be able to detect case is hit reliably
    33Init - Trying to generate event send from ISR while blocking
    44Init - Variation is: Event All condition
    55Support - rtems_timer_create - creating timer 1
    6 *** END OF TEST INTERRUPT CRITICAL SECTION 11 ***
     6*** END OF TEST INTERRUPT CRITICAL SECTION 12 ***
  • testsuites/sptests/spintrcritical13/spintrcritical13.scn

    rdd38f3d9 r9688f466  
    11*** TEST INTERRUPT CRITICAL SECTION 13 ***
    22Init - Trying to generate timer fire from ISR while firing
    3 Init - Variation is: Timer Server Fire After
     3Init - Variation is: Timer Fire After
    44Init - There is no way for the test to know if it hits the case
    55Init - rtems_timer_create - OK
    66Support - rtems_timer_create - creating timer 1
     7*** END OF TEST INTERRUPT CRITICAL SECTION 13 ***
  • testsuites/sptests/spintrcritical14/spintrcritical14.scn

    rdd38f3d9 r9688f466  
    11*** TEST INTERRUPT CRITICAL SECTION 14 ***
    22Init - Trying to generate timer fire from ISR while firing
    3 Init - Variation is: Timer Fire After
     3Init - Variation is: Timer Server Fire After
    44Init - There is no way for the test to know if it hits the case
    55Init - rtems_timer_create - OK
    66Support - rtems_timer_create - creating timer 1
     7*** END OF TEST INTERRUPT CRITICAL SECTION 14 ***
Note: See TracChangeset for help on using the changeset viewer.