Changeset 2d730043 in rtems


Ignore:
Timestamp:
Jul 22, 2009, 9:46:56 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
73dfaf8
Parents:
0997128
Message:

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

  • spintrcritical09/init.c, spintrcritical09/spintrcritical09.scn: Make test work for case that it is documented to handle.
Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r0997128 r2d730043  
     12009-07-22      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * spintrcritical09/init.c, spintrcritical09/spintrcritical09.scn: Make
     4        test work for case that it is documented to handle.
     5
    162009-07-21      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/sptests/spintrcritical09/init.c

    r0997128 r2d730043  
    1515
    1616rtems_id Main_task;
    17 rtems_id Flusher_id;
    1817rtems_id Semaphore;
    1918volatile bool case_hit;
     
    4544}
    4645
    47 rtems_task Flusher(
    48   rtems_task_argument ignored
    49 )
    50 {
    51   rtems_status_code     sc;
    52 
    53   while (1) {
    54     sc = rtems_semaphore_flush( Semaphore );
    55     directive_failed( sc, "rtems_semaphore_flush" );
    56 
    57     sc = rtems_task_wake_after( 2 );
    58     directive_failed( sc, "rtems_task_wake_after" );
    59   }
    60 }
    61 
    6246rtems_task Init(
    6347  rtems_task_argument ignored
     
    6549{
    6650  rtems_status_code     sc;
     51  int                   resets;
    6752
    6853  puts( "\n\n*** TEST INTERRUPT CRITICAL SECTION 09 ***" );
     
    8166  Main_task = rtems_task_self();
    8267
    83   sc = rtems_task_create(
    84     rtems_build_name( 'F', 'L', 'S', 'H' ),
    85     1,
    86     RTEMS_MINIMUM_STACK_SIZE,
    87     RTEMS_DEFAULT_MODES,
    88     RTEMS_DEFAULT_ATTRIBUTES,
    89     &Flusher_id
    90   );
    91   directive_failed( sc, "rtems_task_create" );
    92 
    93   sc = rtems_task_start( Flusher_id, Flusher, 0 );
    94   directive_failed( sc, "rtems_task_start" );
    95 
    9668  interrupt_critical_section_test_support_initialize( test_release_from_isr );
    9769
    9870  case_hit = false;
    9971
    100   while (!case_hit) {
     72  for (resets=0 ; resets< 2 ;) {
     73    if ( interrupt_critical_section_test_support_delay() )
     74      resets++;
     75 
    10176    interrupt_critical_section_test_support_delay();
    10277
     
    10479  }
    10580
    106   puts( "Init - Case hit" );
     81  if (!case_hit)
     82    rtems_test_exit(0);
     83
     84  puts( "Init - It appears we hit the case" );
    10785
    10886  puts( "*** END OF TEST INTERRUPT CRITICAL SECTION 09 ***" );
  • testsuites/sptests/spintrcritical09/spintrcritical09.scn

    r0997128 r2d730043  
    11*** TEST INTERRUPT CRITICAL SECTION 09 ***
     2Init - Test may not be able to detect case is hit reliably
    23Init - Trying to generate timeout from ISR while blocking
    3 Init - Test may not be able to detect case is hit reliably
    44Support - rtems_timer_create - creating timer 1
    5 Init - Trying to generate timeout from ISR while blocking
    6 *** END OF TEST INTERRUPT CRITICAL SECTION 09 ***
Note: See TracChangeset for help on using the changeset viewer.