diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:21 +0100 |
commit | 6c0301daad418d362f71eaa7e5c4b6a2d948fc50 (patch) | |
tree | d08b9e09d3c69ca35f96c9f1eeff8eb244df92ed /testsuites/sptests/spfatal_support | |
parent | tests/psxtests: Use <rtems/test.h> (diff) | |
download | rtems-6c0301daad418d362f71eaa7e5c4b6a2d948fc50.tar.bz2 |
tests/sptests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/sptests/spfatal_support')
-rw-r--r-- | testsuites/sptests/spfatal_support/init.c | 6 | ||||
-rw-r--r-- | testsuites/sptests/spfatal_support/system.h | 4 |
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 |