Changeset 75a5aba in rtems


Ignore:
Timestamp:
Jul 21, 2009, 11:06:13 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
7fbe4fa1
Parents:
bd894e54
Message:

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

  • Makefile.am, configure.ac, sp39/init.c, sp39/sp39.scn: Move unreliable third case in sp39 to spintrcritical10. New tests to hit other event synchronization critical sections.
  • spintrcritical11/.cvsignore, spintrcritical11/Makefile.am, spintrcritical11/init.c, spintrcritical11/spintrcritical11.doc, spintrcritical11/spintrcritical11.scn, spintrcritical12/.cvsignore, spintrcritical12/Makefile.am, spintrcritical12/spintrcritical12.doc, spintrcritical12/spintrcritical12.scn: New files.
Location:
testsuites/sptests
Files:
9 added
5 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rbd894e54 r75a5aba  
     12009-07-21      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * Makefile.am, configure.ac, sp39/init.c, sp39/sp39.scn: Move
     4        unreliable third case in sp39 to spintrcritical10. New tests to hit
     5        other event synchronization critical sections.
     6        * spintrcritical11/.cvsignore, spintrcritical11/Makefile.am,
     7        spintrcritical11/init.c, spintrcritical11/spintrcritical11.doc,
     8        spintrcritical11/spintrcritical11.scn, spintrcritical12/.cvsignore,
     9        spintrcritical12/Makefile.am, spintrcritical12/spintrcritical12.doc,
     10        spintrcritical12/spintrcritical12.scn: New files.
     11
    1122009-07-21      Joel Sherrill <joel.sherrill@OARcorp.com>
    213
  • testsuites/sptests/Makefile.am

    rbd894e54 r75a5aba  
    2121    spintrcritical01 spintrcritical02 spintrcritical03 spintrcritical04 \
    2222    spintrcritical05 spintrcritical06 spintrcritical07 spintrcritical08 \
    23     spintrcritical09
     23    spintrcritical09 spintrcritical10 spintrcritical11 spintrcritical12
    2424 
    2525DIST_SUBDIRS = $(SUBDIRS) spfatal_support spintrcritical_support
  • testsuites/sptests/configure.ac

    rbd894e54 r75a5aba  
    109109spintrcritical08/Makefile
    110110spintrcritical09/Makefile
     111spintrcritical10/Makefile
     112spintrcritical11/Makefile
     113spintrcritical12/Makefile
    111114spobjgetnext/Makefile
    112115spprintk/Makefile
  • testsuites/sptests/sp39/init.c

    rbd894e54 r75a5aba  
    9393
    9494  status = rtems_task_create(
    95      0xa5a5a5a5,
    96      1,
    97      RTEMS_MINIMUM_STACK_SIZE,
    98      RTEMS_DEFAULT_MODES,
    99      RTEMS_DEFAULT_ATTRIBUTES,
    100      &other_task
     95    0xa5a5a5a5,
     96    1,
     97    RTEMS_MINIMUM_STACK_SIZE,
     98    RTEMS_DEFAULT_MODES,
     99    RTEMS_DEFAULT_ATTRIBUTES,
     100    &other_task
    101101  );
    102102  directive_failed( status, "rtems_task_create" );
     
    130130  }
    131131
    132    printf(
    133      "Event sent from ISR hitting synchronization point has %soccurred\n",
    134      (( case_hit == TRUE ) ? "" : "NOT ")
     132  printf(
     133    "Event sent from ISR hitting synchronization point has %soccurred\n",
     134    (( case_hit == TRUE ) ? "" : "NOT ")
    135135  );
    136136
     
    164164  }
    165165
    166    printf(
    167      "Event sent from ISR (with timeout) hitting synchronization "
    168        "point has %soccurred\n",
    169      (( case_hit == TRUE ) ? "" : "NOT ")
     166  printf(
     167    "Event sent from ISR (with timeout) hitting synchronization "
     168      "point has %soccurred\n",
     169    (( case_hit == TRUE ) ? "" : "NOT ")
    170170  );
    171 
    172   /*
    173    *  Now try for a timeout case
    174    */
    175   iterations = 0;
    176   case_hit = FALSE;
    177   max = 1;
    178 
    179   puts(
    180     "Run multiple times in attempt to hit event timeout synchronization point"
    181   );
    182   while (1) {
    183 
    184     for (i=0 ; i<max ; i++ )
    185       if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_SATISFIED )
    186         break;
    187 
    188     status = rtems_event_receive( 0x01, RTEMS_DEFAULT_OPTIONS, 1, &out );
    189     fatal_directive_status( status, RTEMS_TIMEOUT, "event_receive timeout" );
    190 
    191     if ( ++max > 10240 )
    192       max = 0;
    193 
    194     /* with our clock tick, this is about 30 seconds */
    195     if ( ++iterations >= 4L * 1000L * 30L)
    196       break;
    197 
    198   }
    199171
    200172  puts( "*** END OF TEST 39 ***" );
  • testsuites/sptests/sp39/sp39.scn

    rbd894e54 r75a5aba  
    1 
    2 
    31*** TEST 39 ***
    42Event sent from ISR hitting synchronization point has occurred
Note: See TracChangeset for help on using the changeset viewer.