diff options
Diffstat (limited to '')
-rw-r--r-- | testsuites/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/support/include/tmacros.h | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/testsuites/ChangeLog b/testsuites/ChangeLog index b942474608..0c8de9faa2 100644 --- a/testsuites/ChangeLog +++ b/testsuites/ChangeLog @@ -1,3 +1,8 @@ +2010-04-22 Sebastian Huber <Sebastian.Huber@embedded-brains.de> + + * support/include/tmacros.h: Changed check_dispatch_disable_level() to + treat all non-zero values of _Thread_Dispatch_disable_level equally. + 2009-12-08 Glenn Humphrey <glenn.humphrey@OARcorp.com> * support/include/test_support.h, 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", \ |