diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-08 16:41:30 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-09 08:47:51 +0100 |
commit | b6606e8d9911d1487dbf8338447e7560d09ff48c (patch) | |
tree | 0d6ed5ed5e6dcd9284e8ec3e6a6d4c68764aea36 /testsuites/sptests/spinternalerror01/init.c | |
parent | cdtest: Print proper begin/end of test messages (diff) | |
download | rtems-b6606e8d9911d1487dbf8338447e7560d09ff48c.tar.bz2 |
score: Remove fatal is internal indicator
The fatal is internal indicator is redundant since the fatal source and
error code uniquely identify a fatal error. Keep the fatal user
extension is internal parameter for backward compatibility and set it to
false always.
Update #2825.
Diffstat (limited to 'testsuites/sptests/spinternalerror01/init.c')
-rw-r--r-- | testsuites/sptests/spinternalerror01/init.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/testsuites/sptests/spinternalerror01/init.c b/testsuites/sptests/spinternalerror01/init.c index e864db169a..6201aff566 100644 --- a/testsuites/sptests/spinternalerror01/init.c +++ b/testsuites/sptests/spinternalerror01/init.c @@ -26,13 +26,11 @@ const char rtems_test_name[] = "SPINTERNALERROR 1"; #define FATAL_SOURCE 0xdeadbeef -#define FATAL_IS_INTERNAL false - #define FATAL_ERROR 0x600df00d void boot_card( const char *cmdline ) { - _Terminate( FATAL_SOURCE, FATAL_IS_INTERNAL, FATAL_ERROR ); + _Terminate( FATAL_SOURCE, FATAL_ERROR ); } static void fatal_extension( @@ -43,11 +41,7 @@ static void fatal_extension( { TEST_BEGIN(); - if ( - source == FATAL_SOURCE - && is_internal == FATAL_IS_INTERNAL - && error == FATAL_ERROR - ) { + if ( source == FATAL_SOURCE && !is_internal && error == FATAL_ERROR ) { TEST_END(); } } |