[rtems-central commit] spec: Add code coverage support for _Terminate()

Sebastian Huber sebh at rtems.org
Tue Aug 10 08:30:50 UTC 2021


Module:    rtems-central
Branch:    master
Commit:    7f57b1e99278fd5483fe2c940dd6967a6f73012f
Changeset: http://git.rtems.org/rtems-central/commit/?id=7f57b1e99278fd5483fe2c940dd6967a6f73012f

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Aug 10 10:29:29 2021 +0200

spec: Add code coverage support for _Terminate()

---

 spec/score/interr/val/terminate.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/spec/score/interr/val/terminate.yml b/spec/score/interr/val/terminate.yml
index 2021fb1..cbc85af 100644
--- a/spec/score/interr/val/terminate.yml
+++ b/spec/score/interr/val/terminate.yml
@@ -217,7 +217,9 @@ test-description: null
 test-header: null
 test-includes:
 - bsp.h
+- rtems/bspIo.h
 - rtems/score/atomic.h
+- rtems/score/io.h
 - rtems/score/percpu.h
 - rtems/score/sysstate.h
 - setjmp.h
@@ -269,6 +271,9 @@ test-support: |
       halt_code = code;
       longjmp( before_terminate, 1 );
     } else {
+  #if defined(RTEMS_COVERAGE)
+      _IO_Dump_gcov_info( rtems_put_char, NULL );
+  #endif
       __real__CPU_Fatal_halt( source, code );
     }
   }



More information about the vc mailing list