[rtems commit] sptests/sp37: Enable interrupts after test case
Sebastian Huber
sebh at rtems.org
Fri Jan 15 13:21:00 UTC 2016
Module: rtems
Branch: master
Commit: 6da81e25bab847715bb91edd3f6e380ea889bbf4
Changeset: http://git.rtems.org/rtems/commit/?id=6da81e25bab847715bb91edd3f6e380ea889bbf4
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Jan 15 14:13:35 2016 +0100
sptests/sp37: Enable interrupts after test case
This avoids a test failure on ARMv7-M targets.
---
testsuites/sptests/sp37/init.c | 4 ++++
testsuites/sptests/sp37/sp37.scn | 11 ++++++-----
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c
index 2fbe117..2059030 100644
--- a/testsuites/sptests/sp37/init.c
+++ b/testsuites/sptests/sp37/init.c
@@ -467,6 +467,10 @@ static void test_interrupt_body(void)
*/
puts( "interrupt is in progress (use body)" );
in_isr = rtems_interrupt_is_in_progress();
+
+ puts( "interrupt enable (use body)" );
+ rtems_interrupt_enable( level );
+
if ( in_isr ) {
puts( "interrupt reported to be is in progress (body)" );
rtems_test_exit( 0 );
diff --git a/testsuites/sptests/sp37/sp37.scn b/testsuites/sptests/sp37/sp37.scn
index adfa9ee..e3349fc 100644
--- a/testsuites/sptests/sp37/sp37.scn
+++ b/testsuites/sptests/sp37/sp37.scn
@@ -1,4 +1,4 @@
-*** TEST 37 ***
+*** BEGIN OF TEST SP 37 ***
clock_tick from task level
Blocking task... suspending self
clock_tick from task level with preempt -- OK
@@ -6,15 +6,16 @@ interrupt is in progress (use body)
interrupt disable (use inline)
interrupt flash (use inline)
interrupt enable (use inline)
-interrupt level attribute (use inline)
+interrupt level mode (use inline)
test case working..
-interrupt is in progress (use body)
interrupt disable (use body)
interrupt disable (use body)
interrupt flash (use body)
interrupt enable (use body)
-interrupt level attribute (use body)
+interrupt level mode (use body)
test seems to work
+interrupt is in progress (use body)
+interrupt enable (use body)
isr_in_progress(inline) from ISR -- OK
isr_in_progress(body) from ISR -- OK
-*** END OF TEST 37 ***
+*** END OF TEST SP 37 ***
More information about the vc
mailing list