summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spfatal_support
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/spfatal_support')
-rw-r--r--testsuites/sptests/spfatal_support/init.c6
-rw-r--r--testsuites/sptests/spfatal_support/system.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/testsuites/sptests/spfatal_support/init.c b/testsuites/sptests/spfatal_support/init.c
index 6a6f3404fa..5f390adcc3 100644
--- a/testsuites/sptests/spfatal_support/init.c
+++ b/testsuites/sptests/spfatal_support/init.c
@@ -14,13 +14,15 @@
#define CONFIGURE_INIT
#include "system.h"
+const char rtems_test_name[] = FATAL_ERROR_TEST_NAME;
+
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_test_begink();
}
}
@@ -105,7 +107,7 @@ void Fatal_extension(
&& is_internal == FATAL_ERROR_EXPECTED_IS_INTERNAL
&& is_expected_error( error )
) {
- printk( "*** END OF TEST FATAL " FATAL_ERROR_TEST_NAME " ***\n" );
+ rtems_test_endk();
}
}
diff --git a/testsuites/sptests/spfatal_support/system.h b/testsuites/sptests/spfatal_support/system.h
index 407e4933b6..39f6de676a 100644
--- a/testsuites/sptests/spfatal_support/system.h
+++ b/testsuites/sptests/spfatal_support/system.h
@@ -15,6 +15,7 @@
* Some of the fatal error cases require the ability to peek inside RTEMS
*/
#include <rtems.h>
+#include <rtems/test.h>
#include <tmacros.h>
/* functions */
@@ -65,7 +66,8 @@ extern rtems_extensions_table initial_extensions;
NULL, /* begin */ \
NULL, /* exitted */ \
Fatal_extension /* fatal */ \
- }
+ }, \
+ RTEMS_TEST_INITIAL_EXTENSION
/* extra parameters may be in testcase.h */
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER