summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spfatal_support
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2011-09-05 09:54:34 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2011-09-05 09:54:34 +0000
commit3b9247e4752f23c49a420cd2f45b379e0ba63245 (patch)
treef279fa1a2b8bf4d7f51cdf27ceca983af6eb3964 /testsuites/sptests/spfatal_support
parent2011-09-05 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-3b9247e4752f23c49a420cd2f45b379e0ba63245.tar.bz2
2011-09-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
* spfatal01/spfatal01.scn, spfatal02/spfatal02.scn, spfatal13/spfatal13.scn, spfatal14/spfatal14.scn, spfatal15/spfatal15.scn, spfatal16/spfatal16.scn, spfatal17/spfatal17.scn, spfatal18/spfatal18.scn, spfatal19/spfatal19.scn, spfatal20/spfatal20.scn, spfatal_support/init.c: Print proper begin message.
Diffstat (limited to 'testsuites/sptests/spfatal_support')
-rw-r--r--testsuites/sptests/spfatal_support/init.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/testsuites/sptests/spfatal_support/init.c b/testsuites/sptests/spfatal_support/init.c
index aacbe3f22f..2c64015b26 100644
--- a/testsuites/sptests/spfatal_support/init.c
+++ b/testsuites/sptests/spfatal_support/init.c
@@ -16,11 +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 FATAL " FATAL_ERROR_TEST_NAME " ***\n" );
+ }
+}
+
rtems_task Init(
rtems_task_argument argument
)
{
- printk( "\n\n\n*** TEST FATAL " FATAL_ERROR_TEST_NAME " ***\n" );
+ print_test_begin_message();
force_error();
printk( "Fatal error (%s) NOT hit\n", FATAL_ERROR_DESCRIPTION );
rtems_test_exit(0);
@@ -114,6 +124,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 ){