* 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.
This commit is contained in:
Sebastian Huber
2011-09-05 09:54:34 +00:00
parent dc9f1a932b
commit 3b9247e475
12 changed files with 31 additions and 1 deletions

View File

@@ -1,3 +1,12 @@
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.
2011-09-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
* sp40/init.c: Avoid unsupported test cases.

View File

@@ -1,2 +1,3 @@
*** TEST FATAL 1 ***
Fatal error (Classic API Init task create failure) hit
*** END OF TEST FATAL 1 ***

View File

@@ -1,2 +1,3 @@
*** TEST FATAL 2 ***
Fatal error (Classic API Init task start failure) hit
*** END OF TEST FATAL 2 ***

View File

@@ -1,2 +1,3 @@
*** TEST FATAL 13 ***
Fatal error (Configuration of unlimited and maximum of 0) hit
*** END OF TEST FATAL 13 ***

View File

@@ -1,2 +1,3 @@
*** TEST FATAL 14 ***
Fatal error (fail to open stdout) hit
*** END OF TEST FATAL 14 ***

View File

@@ -1,2 +1,3 @@
*** TEST FATAL 15 ***
Fatal error (fail to open stderr) hit
*** END OF TEST FATAL 15 ***

View File

@@ -1,2 +1,3 @@
*** TEST FATAL 16 ***
Fatal error (termios sem create #1) hit
*** END OF TEST FATAL 16 ***

View File

@@ -1,2 +1,3 @@
*** TEST FATAL 17 ***
Fatal error (termios sem create #2) hit
*** END OF TEST FATAL 17 ***

View File

@@ -1,2 +1,3 @@
*** TEST FATAL 18 ***
Fatal error (termios sem create #3) hit
*** END OF TEST FATAL 18 ***

View File

@@ -1,2 +1,3 @@
*** TEST FATAL 19 ***
Fatal error (termios sem create #4) hit
*** END OF TEST FATAL 19 ***

View File

@@ -1,2 +1,3 @@
*** TEST FATAL 20 ***
Fatal error (rtems_termios_initialize cannot create semaphore) hit
*** END OF TEST FATAL 20 ***

View File

@@ -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 ){