[rtems-central commit] spec: Improve validation test

Sebastian Huber sebh at rtems.org
Mon Jul 26 13:21:25 UTC 2021


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jul 26 15:19:53 2021 +0200

spec: Improve validation test

Cover also bsp_interrupt_handler_dispatch_unchecked().

---

 spec/bsp/req/interrupt-spurious.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/spec/bsp/req/interrupt-spurious.yml b/spec/bsp/req/interrupt-spurious.yml
index fbd7d3e..b3e7cf9 100644
--- a/spec/bsp/req/interrupt-spurious.yml
+++ b/spec/bsp/req/interrupt-spurious.yml
@@ -72,7 +72,11 @@ test-action: |
   ctx->fatal_code = UINT32_MAX;
 
   if ( setjmp( ctx->before_call ) == 0 ) {
-    bsp_interrupt_spurious( ctx->vector );
+    if ( *ctx->first == NULL ) {
+      bsp_interrupt_handler_dispatch_unchecked( ctx->vector );
+    } else {
+      bsp_interrupt_spurious( ctx->vector );
+    }
   }
 test-brief: null
 test-cleanup: null



More information about the vc mailing list