diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-09-05 09:54:34 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-09-05 09:54:34 +0000 |
commit | 3b9247e4752f23c49a420cd2f45b379e0ba63245 (patch) | |
tree | f279fa1a2b8bf4d7f51cdf27ceca983af6eb3964 | |
parent | 2011-09-05 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-3b9247e4752f23c49a420cd2f45b379e0ba63245.tar.bz2 |
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.
-rw-r--r-- | testsuites/sptests/ChangeLog | 9 | ||||
-rw-r--r-- | testsuites/sptests/spfatal01/spfatal01.scn | 1 | ||||
-rw-r--r-- | testsuites/sptests/spfatal02/spfatal02.scn | 1 | ||||
-rw-r--r-- | testsuites/sptests/spfatal13/spfatal13.scn | 1 | ||||
-rw-r--r-- | testsuites/sptests/spfatal14/spfatal14.scn | 1 | ||||
-rw-r--r-- | testsuites/sptests/spfatal15/spfatal15.scn | 1 | ||||
-rw-r--r-- | testsuites/sptests/spfatal16/spfatal16.scn | 1 | ||||
-rw-r--r-- | testsuites/sptests/spfatal17/spfatal17.scn | 1 | ||||
-rw-r--r-- | testsuites/sptests/spfatal18/spfatal18.scn | 1 | ||||
-rw-r--r-- | testsuites/sptests/spfatal19/spfatal19.scn | 1 | ||||
-rw-r--r-- | testsuites/sptests/spfatal20/spfatal20.scn | 1 | ||||
-rw-r--r-- | testsuites/sptests/spfatal_support/init.c | 13 |
12 files changed, 31 insertions, 1 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index b21db6c977..8121c4869f 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -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. diff --git a/testsuites/sptests/spfatal01/spfatal01.scn b/testsuites/sptests/spfatal01/spfatal01.scn index 7cfaaafba9..bb75b71087 100644 --- a/testsuites/sptests/spfatal01/spfatal01.scn +++ b/testsuites/sptests/spfatal01/spfatal01.scn @@ -1,2 +1,3 @@ +*** TEST FATAL 1 *** Fatal error (Classic API Init task create failure) hit *** END OF TEST FATAL 1 *** diff --git a/testsuites/sptests/spfatal02/spfatal02.scn b/testsuites/sptests/spfatal02/spfatal02.scn index 5d1c667025..a6e6d93501 100644 --- a/testsuites/sptests/spfatal02/spfatal02.scn +++ b/testsuites/sptests/spfatal02/spfatal02.scn @@ -1,2 +1,3 @@ +*** TEST FATAL 2 *** Fatal error (Classic API Init task start failure) hit *** END OF TEST FATAL 2 *** diff --git a/testsuites/sptests/spfatal13/spfatal13.scn b/testsuites/sptests/spfatal13/spfatal13.scn index 952f9b4b53..27c0dba42e 100644 --- a/testsuites/sptests/spfatal13/spfatal13.scn +++ b/testsuites/sptests/spfatal13/spfatal13.scn @@ -1,2 +1,3 @@ +*** TEST FATAL 13 *** Fatal error (Configuration of unlimited and maximum of 0) hit *** END OF TEST FATAL 13 *** diff --git a/testsuites/sptests/spfatal14/spfatal14.scn b/testsuites/sptests/spfatal14/spfatal14.scn index 42a0d41684..b5b821f621 100644 --- a/testsuites/sptests/spfatal14/spfatal14.scn +++ b/testsuites/sptests/spfatal14/spfatal14.scn @@ -1,2 +1,3 @@ +*** TEST FATAL 14 *** Fatal error (fail to open stdout) hit *** END OF TEST FATAL 14 *** diff --git a/testsuites/sptests/spfatal15/spfatal15.scn b/testsuites/sptests/spfatal15/spfatal15.scn index 4fe4c7ca32..00a45de814 100644 --- a/testsuites/sptests/spfatal15/spfatal15.scn +++ b/testsuites/sptests/spfatal15/spfatal15.scn @@ -1,2 +1,3 @@ +*** TEST FATAL 15 *** Fatal error (fail to open stderr) hit *** END OF TEST FATAL 15 *** diff --git a/testsuites/sptests/spfatal16/spfatal16.scn b/testsuites/sptests/spfatal16/spfatal16.scn index 78d7507da0..3fd27db533 100644 --- a/testsuites/sptests/spfatal16/spfatal16.scn +++ b/testsuites/sptests/spfatal16/spfatal16.scn @@ -1,2 +1,3 @@ +*** TEST FATAL 16 *** Fatal error (termios sem create #1) hit *** END OF TEST FATAL 16 *** diff --git a/testsuites/sptests/spfatal17/spfatal17.scn b/testsuites/sptests/spfatal17/spfatal17.scn index 78c653d809..5f41a1d5c0 100644 --- a/testsuites/sptests/spfatal17/spfatal17.scn +++ b/testsuites/sptests/spfatal17/spfatal17.scn @@ -1,2 +1,3 @@ +*** TEST FATAL 17 *** Fatal error (termios sem create #2) hit *** END OF TEST FATAL 17 *** diff --git a/testsuites/sptests/spfatal18/spfatal18.scn b/testsuites/sptests/spfatal18/spfatal18.scn index 9d541fcbf5..8912a5829e 100644 --- a/testsuites/sptests/spfatal18/spfatal18.scn +++ b/testsuites/sptests/spfatal18/spfatal18.scn @@ -1,2 +1,3 @@ +*** TEST FATAL 18 *** Fatal error (termios sem create #3) hit *** END OF TEST FATAL 18 *** diff --git a/testsuites/sptests/spfatal19/spfatal19.scn b/testsuites/sptests/spfatal19/spfatal19.scn index e520faf614..6dd2901608 100644 --- a/testsuites/sptests/spfatal19/spfatal19.scn +++ b/testsuites/sptests/spfatal19/spfatal19.scn @@ -1,2 +1,3 @@ +*** TEST FATAL 19 *** Fatal error (termios sem create #4) hit *** END OF TEST FATAL 19 *** diff --git a/testsuites/sptests/spfatal20/spfatal20.scn b/testsuites/sptests/spfatal20/spfatal20.scn index d6f3afbe8f..fa8c3009d2 100644 --- a/testsuites/sptests/spfatal20/spfatal20.scn +++ b/testsuites/sptests/spfatal20/spfatal20.scn @@ -1,2 +1,3 @@ +*** TEST FATAL 20 *** Fatal error (rtems_termios_initialize cannot create semaphore) hit *** END OF TEST FATAL 20 *** 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 ){ |