summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/ChangeLog5
-rw-r--r--testsuites/support/include/tmacros.h9
2 files changed, 12 insertions, 2 deletions
diff --git a/testsuites/ChangeLog b/testsuites/ChangeLog
index 7513d6f318..4b1d703153 100644
--- a/testsuites/ChangeLog
+++ b/testsuites/ChangeLog
@@ -1,5 +1,10 @@
2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * support/include/tmacros.h: Move _Thread_Dispatch_disable_level
+ outside of check_dispatch_disable_level.
+
+2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
+
* support/src/test_support.c: Add missing prototypes.
* support/include/tmacros.h: Include <inttypes.h>.
Move extern "C".
diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h
index b80c21b35c..5ce53cde09 100644
--- a/testsuites/support/include/tmacros.h
+++ b/testsuites/support/include/tmacros.h
@@ -42,15 +42,20 @@ extern "C" {
#include <buffer_test_io.h>
/*
+ * HACK: Blatant visibility violation
+ * Should include a public header instead
+ */
+extern volatile uint32_t _Thread_Dispatch_disable_level;
+
+/*
* Check that that the dispatch disable level is proper for the
* mode/state of the test. Normally it should be 0 when in task space.
*/
#define check_dispatch_disable_level( _expect ) \
do { \
- extern volatile uint32_t _Thread_Dispatch_disable_level; \
if ( (_expect) != -1 && _Thread_Dispatch_disable_level != (_expect) ) { \
- printf( "\n_Thread_Dispatch_disable_level is (%d) not %d\n", \
+ printf( "\n_Thread_Dispatch_disable_level is (%" PRId32 ") not %d\n", \
_Thread_Dispatch_disable_level, (_expect) ); \
FLUSH_OUTPUT(); \
rtems_test_exit( 1 ); \