diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-09-02 13:41:55 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-09-02 13:41:55 +0000 |
commit | 63f871fa9316f549d9d561473e731ef676d3c39b (patch) | |
tree | f39b119d21c2632d95f073d316c89aa62d0ff18b /testsuites/libtests/stackchk/init.c | |
parent | 2011-09-02 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-63f871fa9316f549d9d561473e731ef676d3c39b.tar.bz2 |
2011-09-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
* stackchk/init.c, stackchk/system.h, stackchk/stackchk.scn: Print end
of test message.
Diffstat (limited to '')
-rw-r--r-- | testsuites/libtests/stackchk/init.c | 16 |
1 files changed, 16 insertions, 0 deletions
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(); +} |