summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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); \