From 96c2db619f910f625a22da233918722691f81938 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Nov 1999 22:51:47 +0000 Subject: 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. --- testsuites/support/include/tmacros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuites') 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); \ -- cgit v1.2.3