summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spfatal_support/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/spfatal_support/init.c')
-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 ){