From f4400899977371c8151195e004d4b3d27ad49a9f Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 26 Oct 2009 05:32:35 +0000 Subject: =?UTF-8?q?2009-10-26=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * support/include/tmacros.h: Move _Thread_Dispatch_disable_level outside of check_dispatch_disable_level. --- testsuites/ChangeLog | 5 +++++ testsuites/support/include/tmacros.h | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'testsuites') diff --git a/testsuites/ChangeLog b/testsuites/ChangeLog index 7513d6f318..4b1d703153 100644 --- a/testsuites/ChangeLog +++ b/testsuites/ChangeLog @@ -1,3 +1,8 @@ +2009-10-26 Ralf Corsépius + + * support/include/tmacros.h: Move _Thread_Dispatch_disable_level + outside of check_dispatch_disable_level. + 2009-10-26 Ralf Corsépius * support/src/test_support.c: Add missing prototypes. 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 @@ -41,6 +41,12 @@ extern "C" { #include +/* + * 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. @@ -48,9 +54,8 @@ extern "C" { #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 ); \ -- cgit v1.2.3