Changeset 1c95d94 in rtems for testsuites/support
- Timestamp:
- Apr 21, 2011, 7:05:34 PM (9 years ago)
- Branches:
- 4.11, master
- Children:
- 469a993
- Parents:
- d7c3883
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/support/include/tmacros.h
rd7c3883 r1c95d94 26 26 #include <rtems/error.h> 27 27 #include <rtems/score/thread.h> /* _Thread_Dispatch_disable_level */ 28 #include <rtems/score/thread.inl> /* _Thread_Dispatch_disable_level */ 28 29 29 30 #ifdef __cplusplus … … 49 50 do { \ 50 51 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)) \ 53 54 ) { \ 54 55 printk( \ 55 56 "\n_Thread_Dispatch_disable_level is (%" PRId32 \ 56 57 ") not %d detected at %s:%d\n", \ 57 _Thread_Dispatch_ disable_level, (_expect), __FILE__, __LINE__ ); \58 _Thread_Dispatch_get_disable_level(), (_expect), __FILE__, __LINE__ ); \ 58 59 FLUSH_OUTPUT(); \ 59 60 rtems_test_exit( 1 ); \
Note: See TracChangeset
for help on using the changeset viewer.