Changeset 1c0749b9 in rtems


Ignore:
Timestamp:
Sep 2, 2011, 12:20:15 PM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
0690fb28
Parents:
1c963169
Message:

2011-09-02 Sebastian Huber <sebastian.huber@…>

  • sp40/init.c: Avoid unsupported test cases.
Location:
testsuites/sptests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r1c963169 r1c0749b9  
     12011-09-02      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * sp40/init.c: Avoid unsupported test cases.
     4
    152011-08-22      Sebastian Huber <sebastian.huber@embedded-brains.de>
    26
  • testsuites/sptests/sp40/init.c

    r1c963169 r1c0749b9  
    6363  rtems_device_major_number invalid_major = _IO_Number_of_drivers + 1;
    6464  rtems_interrupt_level level;
     65  bool do_interrupt_context_test = true;
    6566
    6667  puts( "\n\n*** TEST 40 ***" );
     68
     69  /* Ensure that this test works as expected */
     70  test_interrupt_context_enter( level );
     71  do_interrupt_context_test = rtems_interrupt_is_in_progress();
     72  test_interrupt_context_leave( level );
    6773
    6874  /*
     
    101107
    102108  puts( "Init - rtems_io_register_driver - called from interrupt context" );
    103   test_interrupt_context_enter( level );
    104   sc = rtems_io_register_driver( 0, NULL, NULL );
    105   test_interrupt_context_leave( level );
    106   fatal_directive_status(
    107     sc,
    108     RTEMS_CALLED_FROM_ISR,
    109     "rtems_io_register_driver"
    110   );
     109  if ( do_interrupt_context_test ) {
     110    test_interrupt_context_enter( level );
     111    sc = rtems_io_register_driver( 0, NULL, NULL );
     112    test_interrupt_context_leave( level );
     113    fatal_directive_status(
     114      sc,
     115      RTEMS_CALLED_FROM_ISR,
     116      "rtems_io_register_driver"
     117    );
     118  }
    111119
    112120  puts( "Init - rtems_io_register_driver - invalid registered major pointer" );
     
    145153
    146154  puts( "Init - rtems_io_unregister_driver - called from interrupt context" );
    147   test_interrupt_context_enter( level );
    148   sc = rtems_io_unregister_driver( 0 );
    149   test_interrupt_context_leave( level );
    150   fatal_directive_status(
    151     sc,
    152     RTEMS_CALLED_FROM_ISR,
    153     "rtems_io_unregister_driver"
    154   );
     155  if ( do_interrupt_context_test ) {
     156    test_interrupt_context_enter( level );
     157    sc = rtems_io_unregister_driver( 0 );
     158    test_interrupt_context_leave( level );
     159    fatal_directive_status(
     160      sc,
     161      RTEMS_CALLED_FROM_ISR,
     162      "rtems_io_unregister_driver"
     163    );
     164  }
    155165
    156166  puts( "Init - rtems_io_unregister_driver - invalid major number" );
Note: See TracChangeset for help on using the changeset viewer.