summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spinternalerror01/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:21 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:21 +0100
commit6c0301daad418d362f71eaa7e5c4b6a2d948fc50 (patch)
treed08b9e09d3c69ca35f96c9f1eeff8eb244df92ed /testsuites/sptests/spinternalerror01/init.c
parenttests/psxtests: Use <rtems/test.h> (diff)
downloadrtems-6c0301daad418d362f71eaa7e5c4b6a2d948fc50.tar.bz2
tests/sptests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/sptests/spinternalerror01/init.c')
-rw-r--r--testsuites/sptests/spinternalerror01/init.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/testsuites/sptests/spinternalerror01/init.c b/testsuites/sptests/spinternalerror01/init.c
index 4bdcfde31e..15a23159a9 100644
--- a/testsuites/sptests/spinternalerror01/init.c
+++ b/testsuites/sptests/spinternalerror01/init.c
@@ -19,6 +19,10 @@
#include <bsp.h>
#include <bsp/bootcard.h>
+#include <rtems/test.h>
+
+const char rtems_test_name[] = "SPINTERNALERROR 1";
+
#define FATAL_SOURCE 0xdeadbeef
#define FATAL_IS_INTERNAL false
@@ -36,14 +40,14 @@ static void fatal_extension(
Internal_errors_t error
)
{
- printk( "\n\n*** TEST SPINTERNALERROR 1 ***\n" );
+ rtems_test_begink();
if (
source == FATAL_SOURCE
&& is_internal == FATAL_IS_INTERNAL
&& error == FATAL_ERROR
) {
- printk( "*** END OF TEST SPINTERNALERROR 1 ***\n" );
+ rtems_test_endk();
}
}
@@ -56,7 +60,9 @@ static void *idle_body(uintptr_t ignored)
return NULL;
}
-#define CONFIGURE_INITIAL_EXTENSIONS { .fatal = fatal_extension }
+#define CONFIGURE_INITIAL_EXTENSIONS \
+ { .fatal = fatal_extension }, \
+ RTEMS_TEST_INITIAL_EXTENSION
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER