diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-09-05 09:49:52 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-09-05 09:49:52 +0000 |
commit | dc9f1a932ba762e7dabe62d48b93e019ed092efd (patch) | |
tree | 0cee6356ea8357f1e7db5d9d4d44d65942cb9d93 /testsuites/psxtests/psxfatal_support | |
parent | Restore bfin hacks. (diff) | |
download | rtems-dc9f1a932ba762e7dabe62d48b93e019ed092efd.tar.bz2 |
2011-09-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
* psxfatal01/psxfatal01.scn, psxfatal01/testcase.h,
psxfatal02/psxfatal02.scn, psxfatal02/testcase.h,
psxfatal_support/init.c: Print proper begin and end message.
Diffstat (limited to 'testsuites/psxtests/psxfatal_support')
-rw-r--r-- | testsuites/psxtests/psxfatal_support/init.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxfatal_support/init.c b/testsuites/psxtests/psxfatal_support/init.c index d759d99189..274a982e5d 100644 --- a/testsuites/psxtests/psxfatal_support/init.c +++ b/testsuites/psxtests/psxfatal_support/init.c @@ -16,10 +16,21 @@ #define CONFIGURE_INIT #include "system.h" +static void print_test_begin_message(void) +{ + static bool done = false; + + if (!done) { + done = true; + printk( "\n\n\n*** TEST POSIX FATAL " FATAL_ERROR_TEST_NAME " ***\n" ); + } +} + void *POSIX_Init( void *argument ) { + print_test_begin_message(); force_error(); printk( "Fatal error (%s) NOT hit\n", FATAL_ERROR_DESCRIPTION ); rtems_test_exit(0); @@ -115,6 +126,7 @@ void Fatal_extension( uint32_t error ) { + print_test_begin_message(); printk( "Fatal error (%s) hit\n", FATAL_ERROR_DESCRIPTION ); if ( source != FATAL_ERROR_EXPECTED_SOURCE ){ @@ -146,7 +158,7 @@ void Fatal_extension( && is_internal == FATAL_ERROR_EXPECTED_IS_INTERNAL && error == FATAL_ERROR_EXPECTED_ERROR ) { - printk( "*** END OF TEST ***\n" ); + printk( "*** END OF TEST POSIX FATAL " FATAL_ERROR_TEST_NAME " ***\n" ); } if ( _System_state_Is_up( _System_state_Get() ) ) |