From 63f871fa9316f549d9d561473e731ef676d3c39b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 2 Sep 2011 13:41:55 +0000 Subject: 2011-09-02 Sebastian Huber * stackchk/init.c, stackchk/system.h, stackchk/stackchk.scn: Print end of test message. --- testsuites/libtests/ChangeLog | 5 +++++ testsuites/libtests/stackchk/init.c | 16 ++++++++++++++++ testsuites/libtests/stackchk/stackchk.scn | 1 + testsuites/libtests/stackchk/system.h | 5 +++++ 4 files changed, 27 insertions(+) (limited to 'testsuites') diff --git a/testsuites/libtests/ChangeLog b/testsuites/libtests/ChangeLog index f9d6ef3599..8a74bb4062 100644 --- a/testsuites/libtests/ChangeLog +++ b/testsuites/libtests/ChangeLog @@ -1,3 +1,8 @@ +2011-09-02 Sebastian Huber + + * stackchk/init.c, stackchk/system.h, stackchk/stackchk.scn: Print end + of test message. + 2011-07-29 Pawel Zagorski PR 1865/tests diff --git a/testsuites/libtests/stackchk/init.c b/testsuites/libtests/stackchk/init.c index 8a7610b77a..766748c0c4 100644 --- a/testsuites/libtests/stackchk/init.c +++ b/testsuites/libtests/stackchk/init.c @@ -87,3 +87,19 @@ rtems_task Init( status = rtems_task_delete( RTEMS_SELF ); directive_failed( status, "rtems_task_delete of RTEMS_SELF" ); } + +void Fatal_extension( uint32_t source, bool is_internal, uint32_t error ) +{ + if ( source != INTERNAL_ERROR_RTEMS_API ) { + printk( "unexpected fatal source\n" ); + } else if ( is_internal ) { + printk( "unexpected fatal is internal\n" ); + } else if ( error != 0x81 ) { + printk( "unexpected fatal error\n" ); + } else { + printk( "*** END OF TEST STACK CHECKER ***\n" ); + } + + if ( _System_state_Is_up( _System_state_Get() ) ) + _Thread_Stop_multitasking(); +} diff --git a/testsuites/libtests/stackchk/stackchk.scn b/testsuites/libtests/stackchk/stackchk.scn index 5f30fc22ea..79b9087d92 100644 --- a/testsuites/libtests/stackchk/stackchk.scn +++ b/testsuites/libtests/stackchk/stackchk.scn @@ -20,3 +20,4 @@ task name: 0x???????? task name string: TA1 task stack area (????? Bytes): 0x???????? .. 0x???????? damaged pattern area (16 Bytes): 0x???????? .. 0x???????? +*** END OF TEST STACK CHECKER *** diff --git a/testsuites/libtests/stackchk/system.h b/testsuites/libtests/stackchk/system.h index dde3ca7d26..441033e976 100644 --- a/testsuites/libtests/stackchk/system.h +++ b/testsuites/libtests/stackchk/system.h @@ -43,6 +43,11 @@ void blow_stack( void ); #define CONFIGURE_STACK_CHECKER_ENABLED +void Fatal_extension( uint32_t source, bool is_internal, uint32_t error ); + +#define CONFIGURE_INITIAL_EXTENSIONS \ + { NULL, NULL, NULL, NULL, NULL, NULL, NULL, Fatal_extension } + #include /* global variables */ -- cgit v1.2.3