Changeset d504e48 in rtems for testsuites/support


Ignore:
Timestamp:
Jul 1, 2011, 2:28:03 PM (8 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, master
Children:
7d647c0
Parents:
03d2108
Message:

2011-07-01 Jennifer Averett <Jennifer.Averett@…>

  • support/include/tmacros.h: Disable the check for dispatch disable level for SMP tests. Another CPU may be inside RTEMS by the time these checks are being done which would result in false failures.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/support/include/tmacros.h

    r03d2108 rd504e48  
    4646 *  Check that that the dispatch disable level is proper for the
    4747 *  mode/state of the test.  Normally it should be 0 when in task space.
    48  */
    49 #define check_dispatch_disable_level( _expect ) \
     48 *
     49 *  This test is only valid when in a non smp system.  In an smp system
     50 *  another cpu may be accessing the core at any point when this core
     51 *  does not have it locked.
     52 */
     53#if defined SMPTEST
     54 #define check_dispatch_disable_level( _expect )
     55#else
     56 #define check_dispatch_disable_level( _expect ) \
    5057  do { \
    5158    if ( (_expect) != -1 \
     
    5663        "\n_Thread_Dispatch_disable_level is (%" PRId32 \
    5764           ") not %d detected at %s:%d\n", \
    58          _Thread_Dispatch_get_disable_level(), (_expect), __FILE__, __LINE__ ); \
     65         _Thread_Dispatch_in_critical_section(), (_expect), __FILE__, __LINE__ ); \
    5966      FLUSH_OUTPUT(); \
    6067      rtems_test_exit( 1 ); \
    6168    } \
    6269  } while ( 0 )
     70#endif
    6371
    6472/*
Note: See TracChangeset for help on using the changeset viewer.