diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:16 +0100 |
commit | 698c2e504a4382036b412e1b2798ca83432bbbab (patch) | |
tree | 114a7c00b534d6cecd4566b5d1c892c79b899268 /testsuites/psxtests/psxfatal_support | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxfatal_support')
-rw-r--r-- | testsuites/psxtests/psxfatal_support/init.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxfatal_support/system.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/testsuites/psxtests/psxfatal_support/init.c b/testsuites/psxtests/psxfatal_support/init.c index 000f883293..edbba48818 100644 --- a/testsuites/psxtests/psxfatal_support/init.c +++ b/testsuites/psxtests/psxfatal_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 POSIX FATAL " FATAL_ERROR_TEST_NAME " ***\n" ); + rtems_test_begink(); } } @@ -93,7 +95,7 @@ void Fatal_extension( && is_internal == FATAL_ERROR_EXPECTED_IS_INTERNAL && error == FATAL_ERROR_EXPECTED_ERROR ) { - printk( "*** END OF TEST POSIX FATAL " FATAL_ERROR_TEST_NAME " ***\n" ); + rtems_test_endk(); } } diff --git a/testsuites/psxtests/psxfatal_support/system.h b/testsuites/psxtests/psxfatal_support/system.h index c276bc6229..4a6e5d9d9c 100644 --- a/testsuites/psxtests/psxfatal_support/system.h +++ b/testsuites/psxtests/psxfatal_support/system.h @@ -58,7 +58,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 @@ -68,6 +69,7 @@ extern rtems_extensions_table initial_extensions; #ifndef SPFATAL_TEST_CASE_EXTRA_THREADS #define SPFATAL_TEST_CASE_EXTRA_THREADS 0 #endif + #define CONFIGURE_MAXIMUM_POSIX_THREADS \ (SPFATAL_TEST_CASE_EXTRA_THREADS + 1) |