summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-16 22:51:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-16 22:51:47 +0000
commit96c2db619f910f625a22da233918722691f81938 (patch)
tree32d48eca2bd185973423771eb75fada727a2c8a2
parentcea33049140367719a22f5cfa85ebabc69326548 (diff)
downloadrtems-96c2db619f910f625a22da233918722691f81938.tar.bz2
Added code so if dispatching level is specified to be -1, then no
check is performed. This is needed in some timer service routines since they are called from multiple disable levels.
-rw-r--r--c/src/tests/support/include/tmacros.h2
-rw-r--r--testsuites/support/include/tmacros.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/c/src/tests/support/include/tmacros.h b/c/src/tests/support/include/tmacros.h
index ae5cc330ea..5588131e45 100644
--- a/c/src/tests/support/include/tmacros.h
+++ b/c/src/tests/support/include/tmacros.h
@@ -39,7 +39,7 @@ extern "C" {
#define check_dispatch_disable_level( _expect ) \
do { \
extern volatile rtems_unsigned32 _Thread_Dispatch_disable_level; \
- if ( _Thread_Dispatch_disable_level != (_expect) ) { \
+ if ( (_expect) != -1 && _Thread_Dispatch_disable_level != (_expect) ) { \
printf( "\n_Thread_Dispatch_disable_level is (%d) not %d\n", \
_Thread_Dispatch_disable_level, (_expect) ); \
fflush(stdout); \
diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h
index ae5cc330ea..5588131e45 100644
--- a/testsuites/support/include/tmacros.h
+++ b/testsuites/support/include/tmacros.h
@@ -39,7 +39,7 @@ extern "C" {
#define check_dispatch_disable_level( _expect ) \
do { \
extern volatile rtems_unsigned32 _Thread_Dispatch_disable_level; \
- if ( _Thread_Dispatch_disable_level != (_expect) ) { \
+ if ( (_expect) != -1 && _Thread_Dispatch_disable_level != (_expect) ) { \
printf( "\n_Thread_Dispatch_disable_level is (%d) not %d\n", \
_Thread_Dispatch_disable_level, (_expect) ); \
fflush(stdout); \