summaryrefslogtreecommitdiffstats
path: root/testsuites/support/include/tmacros.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-26 05:32:35 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-26 05:32:35 +0000
commitf4400899977371c8151195e004d4b3d27ad49a9f (patch)
treee94a8aae221c678f23805a7814034f20865a194c /testsuites/support/include/tmacros.h
parent2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-f4400899977371c8151195e004d4b3d27ad49a9f.tar.bz2
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.
Diffstat (limited to 'testsuites/support/include/tmacros.h')
-rw-r--r--testsuites/support/include/tmacros.h9
1 files changed, 7 insertions, 2 deletions
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 ); \