diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-21 15:21:15 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-23 16:31:12 +0200 |
commit | 3787f34a554bdc6102d4deab8fdcc08840b5497a (patch) | |
tree | a9e7df43e2e8ffd1642d07cf0a42b97e66f2a756 | |
parent | 2ba8a8d299f30943166dac01e95b2083422f44b1 (diff) |
validation: Support RTEMS_COVERAGE
-rw-r--r-- | testsuites/validation/ts-default.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuites/validation/ts-default.h b/testsuites/validation/ts-default.h index 73021a99b8..0a688d1032 100644 --- a/testsuites/validation/ts-default.h +++ b/testsuites/validation/ts-default.h @@ -37,10 +37,13 @@ #include <rtems/chain.h> #include <rtems/test-info.h> #include <rtems/testopts.h> +#include <rtems/score/io.h> #include <rtems/test.h> #include <rtems/test-scheduler.h> +#include <stdlib.h> + #include "ts-config.h" #include "tx-support.h" @@ -116,9 +119,19 @@ static void Init( rtems_task_argument arg ) rtems_test_end( rtems_test_name ); } +#if defined(RTEMS_COVERAGE) + _IO_Dump_gcov_info( rtems_put_char, NULL ); +#endif rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, (uint32_t) exit_code ); } +#if defined(RTEMS_COVERAGE) +void abort( void ) +{ + rtems_fatal( RTEMS_FATAL_SOURCE_APPLICATION, 0 ); +} +#endif + static void *task_stack_allocate( size_t size ) { if ( size > sizeof( task_storage[ 0 ] ) ) { |