Changeset 4e4f06b in rtems


Ignore:
Timestamp:
Jul 23, 2009, 4:12:53 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
3da35a18
Parents:
a74c869
Message:

2009-07-23 Joel Sherrill <joel.sherrill@…>

  • spintrcritical06/init.c: Test now hits forward and reverse cases.
Location:
testsuites/sptests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    ra74c869 r4e4f06b  
     12009-07-23      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * spintrcritical06/init.c: Test now hits forward and reverse cases.
     4
    152009-07-22      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • testsuites/sptests/spintrcritical06/init.c

    ra74c869 r4e4f06b  
    1616/* common parameters */
    1717#define SEMAPHORE_ATTRIBUTES     RTEMS_PRIORITY
    18 #define SEMAPHORE_OBTAIN_TIMEOUT 0
    1918
    2019#if defined(PRIORITY_NO_TIMEOUT_FORWARD)
     
    2423  #define INIT_PRIORITY      2
    2524  #define BLOCKER_PRIORITY   1
     25  #define SEMAPHORE_OBTAIN_TIMEOUT 0
    2626
    2727#elif defined(PRIORITY_NO_TIMEOUT_REVERSE)
     
    3030  #define INIT_PRIORITY      126
    3131  #define BLOCKER_PRIORITY   127
     32  #define SEMAPHORE_OBTAIN_TIMEOUT 2
    3233
    3334#else
     
    3940rtems_id Secondary_task_id;
    4041rtems_id Semaphore;
    41 volatile bool case_hit;
    4242
    4343Thread_blocking_operation_States getState(void)
     
    7474    (void) rtems_semaphore_flush( Semaphore );
    7575
    76   #if defined(PRIORITY_NO_TIMEOUT_REVERSE)
    77     status = rtems_task_resume( Main_task );
    78     directive_failed( status, "rtems_task_resume" );
    79   #endif
    80 
    8176  status = rtems_semaphore_obtain(
    8277    Semaphore,
     
    9691  puts( "\n\n*** TEST INTERRUPT CRITICAL SECTION " TEST_NAME " ***" );
    9792
    98 #if defined(PRIORITY_NO_TIMEOUT_REVERSE)
    99   puts( "WARNING!!! TEST IS NOT COMPLETE!!!" );
    100   puts( "WARNING!!! TEST IS NOT COMPLETE!!!" );
    101   puts( "WARNING!!! TEST IS NOT COMPLETE!!!" );
    102   puts( "WARNING!!! TEST IS NOT COMPLETE!!!" );
    103 #endif
    104 
    10593  puts( "Init - Trying to generate semaphore release from ISR while blocking" );
    10694  puts( "Init - Variation is: " TEST_STRING );
     
    118106  status = rtems_task_create(
    119107    rtems_build_name( 'B', 'L', 'C', 'K' ),
    120     1,
     108    BLOCKER_PRIORITY,
    121109    RTEMS_MINIMUM_STACK_SIZE,
    122110    RTEMS_NO_PREEMPT,
     
    134122    if ( interrupt_critical_section_test_support_delay() )
    135123      resets++;
    136     #if defined(PRIORITY_NO_TIMEOUT_REVERSE)
    137       status = rtems_task_suspend( RTEMS_SELF );
    138       directive_failed( status, "rtems_task_suspend" );
    139     #endif
    140124
    141125    status = rtems_semaphore_obtain(
     
    144128      SEMAPHORE_OBTAIN_TIMEOUT
    145129    );
    146     fatal_directive_status(status, RTEMS_UNSATISFIED, "rtems_semaphore_obtain");
    147130  }
    148131
Note: See TracChangeset for help on using the changeset viewer.