Changeset 49cdf40 in rtems for testsuites/support


Ignore:
Timestamp:
Jun 12, 2013, 7:25:39 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
5c78940d
Parents:
ec978d9
git-author:
Sebastian Huber <sebastian.huber@…> (06/12/13 07:25:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/14/13 14:26:06)
Message:

score: Add and use _Thread_Dispatch_is_enabled()

Delete _Thread_Dispatch_in_critical_section() and
_Thread_Is_dispatching_enabled().

File:
1 edited

Legend:

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

    rec978d9 r49cdf40  
    5555  do { \
    5656    if ( (_expect) != -1 \
    57            && ((_Thread_Dispatch_in_critical_section() == false && (_expect) != 0) \
    58              || (_Thread_Dispatch_in_critical_section() && (_expect) == 0)) \
     57           && ((!_Thread_Dispatch_is_enabled() == false && (_expect) != 0) \
     58             || (!_Thread_Dispatch_is_enabled() && (_expect) == 0)) \
    5959    ) { \
    6060      printk( \
    6161        "\n_Thread_Dispatch_disable_level is (%" PRId32 \
    6262           ") not %d detected at %s:%d\n", \
    63          _Thread_Dispatch_in_critical_section(), (_expect), __FILE__, __LINE__ ); \
     63         !_Thread_Dispatch_is_enabled(), (_expect), __FILE__, __LINE__ ); \
    6464      FLUSH_OUTPUT(); \
    6565      rtems_test_exit( 1 ); \
Note: See TracChangeset for help on using the changeset viewer.