From 6196ded1d55195102d05deaa8dc40a2901f3361a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 28 Apr 2010 16:37:20 +0000 Subject: 2010-04-22 Sebastian Huber * support/include/tmacros.h: Changed check_dispatch_disable_level() to treat all non-zero values of _Thread_Dispatch_disable_level equally. --- testsuites/support/include/tmacros.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'testsuites/support/include/tmacros.h') diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h index 960c20f14a..780e5a2600 100644 --- a/testsuites/support/include/tmacros.h +++ b/testsuites/support/include/tmacros.h @@ -47,7 +47,10 @@ extern "C" { */ #define check_dispatch_disable_level( _expect ) \ do { \ - if ( (_expect) != -1 && _Thread_Dispatch_disable_level != (_expect) ) { \ + if ( (_expect) != -1 \ + && ((_Thread_Dispatch_disable_level == 0 && (_expect) != 0) \ + || (_Thread_Dispatch_disable_level != 0 && (_expect) == 0)) \ + ) { \ printk( \ "\n_Thread_Dispatch_disable_level is (%" PRId32 \ ") not %d detected at %s:%d\n", \ -- cgit v1.2.3