Changeset c8633f1 in rtems


Ignore:
Timestamp:
Apr 20, 2009, 3:47:32 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
28f05e19
Parents:
5faedff
Message:

2009-04-20 Santosh G Vattam <vattam.santosh@…>

  • sp37/init.c, sp37/sp37.scn: Add test case for rtems_interrupt_level_attribute body.
Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r5faedff rc8633f1  
     12009-04-20      Santosh G Vattam <vattam.santosh@gmail.com>
     2
     3        * sp37/init.c, sp37/sp37.scn: Add test case for
     4        rtems_interrupt_level_attribute body.
     5
    162009-04-03      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • testsuites/sptests/sp37/init.c

    r5faedff rc8633f1  
    2020{
    2121  rtems_interrupt_level level;
     22  rtems_attribute level_attribute, level_attribute_macro;
    2223  bool                  in_isr;
    2324
     
    3738  puts( "interrupt enable (use inline)" );
    3839  rtems_interrupt_enable( level );
     40 
     41  puts( "interrupt level attribute (use inline)" );
     42  level_attribute = rtems_interrupt_level_attribute( level );
     43  level_attribute_macro = RTEMS_INTERRUPT_LEVEL(level);
     44  if ( level_attribute_macro == level_attribute ) {
     45    puts( "test case working.." );
     46  }
    3947}
    4048
     
    148156  rtems_status_code     status;
    149157  rtems_interrupt_level level;
     158  rtems_attribute level_attribute,level_attribute_macro;
    150159  bool                  in_isr;
    151160  rtems_id              timer;
     
    251260  puts( "interrupt enable (use body)" );
    252261  rtems_interrupt_enable( level );
     262 
     263  puts( "interrupt level attribute (use body)" );
     264  level_attribute = rtems_interrupt_level_attribute( level );
     265  level_attribute_macro = RTEMS_INTERRUPT_LEVEL(level);
     266  if ( level_attribute_macro == level_attribute ) {
     267    puts("test seems to work");
     268  }
    253269
    254270  /*
  • testsuites/sptests/sp37/sp37.scn

    r5faedff rc8633f1  
    77interrupt flash (use inline)
    88interrupt enable (use inline)
     9interrupt level attribute (use inline)
     10test case working..
    911interrupt is in progress (use body)
    1012interrupt disable (use body)
     
    1214interrupt flash (use body)
    1315interrupt enable (use body)
     16interrupt level attribute (use body)
     17test seems to work
    1418isr_in_progress(inline) from ISR -- OK
    1519isr_in_progress(body) from ISR -- OK
Note: See TracChangeset for help on using the changeset viewer.