Changeset 1c95d94 in rtems for testsuites/support


Ignore:
Timestamp:
Apr 21, 2011, 7:05:34 PM (9 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, master
Children:
469a993
Parents:
d7c3883
Message:

2011-04-21 Jennifer Averett <Jennifer.Averett@…

PR 1777/cpukit

  • support/include/tmacros.h, tmtests/tm26/task1.c, tmtests/tm27/task1.c: Consolidated access to _Thread_Dispatch_disable_level.
File:
1 edited

Legend:

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

    rd7c3883 r1c95d94  
    2626#include <rtems/error.h>
    2727#include <rtems/score/thread.h> /*  _Thread_Dispatch_disable_level */
     28#include <rtems/score/thread.inl> /*  _Thread_Dispatch_disable_level */
    2829
    2930#ifdef __cplusplus
     
    4950  do { \
    5051    if ( (_expect) != -1 \
    51            && ((_Thread_Dispatch_disable_level == 0 && (_expect) != 0) \
    52              || (_Thread_Dispatch_disable_level != 0 && (_expect) == 0)) \
     52           && ((_Thread_Dispatch_in_critical_section() == false && (_expect) != 0) \
     53             || (_Thread_Dispatch_in_critical_section() && (_expect) == 0)) \
    5354    ) { \
    5455      printk( \
    5556        "\n_Thread_Dispatch_disable_level is (%" PRId32 \
    5657           ") not %d detected at %s:%d\n", \
    57          _Thread_Dispatch_disable_level, (_expect), __FILE__, __LINE__ ); \
     58         _Thread_Dispatch_get_disable_level(), (_expect), __FILE__, __LINE__ ); \
    5859      FLUSH_OUTPUT(); \
    5960      rtems_test_exit( 1 ); \
Note: See TracChangeset for help on using the changeset viewer.