diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-05-06 17:29:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-05-06 17:29:35 +0000 |
commit | abd29cb95a7a845bca3b0f31d5167b03568312e0 (patch) | |
tree | d5dab79b8af1b2a13ce90a720a1bc282b9478ba4 /testsuites/sptests | |
parent | 2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-abd29cb95a7a845bca3b0f31d5167b03568312e0.tar.bz2 |
2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp39/init.c: Fix tests broken in warning pass.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r-- | testsuites/sptests/ChangeLog | 4 | ||||
-rw-r--r-- | testsuites/sptests/sp39/init.c | 16 |
2 files changed, 16 insertions, 4 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index 737cebe4fb..eaf429a3e2 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -1,3 +1,7 @@ +2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com> + + * sp39/init.c: Fix tests broken in warning pass. + 2011-05-06 Sebastian Huber <sebastian.huber@embedded-brains.de> * spnsext01/.cvsignore, spnsext01/Makefile.am, spnsext01/init.c, diff --git a/testsuites/sptests/sp39/init.c b/testsuites/sptests/sp39/init.c index 81dcd4f315..bda1c8d592 100644 --- a/testsuites/sptests/sp39/init.c +++ b/testsuites/sptests/sp39/init.c @@ -18,6 +18,14 @@ #define CONFIGURE_INIT #include "system.h" +/* + * ERROR CHECKING NOTE: + * + * We are either at dispatch disable level 1 or 2. Either way, it is + * safer not to check the dispatch level explicitly so we are using + * fatal_directive_check_status_only() not directive_failed(). + */ + rtems_timer_service_routine test_event_from_isr( rtems_id timer, void *arg @@ -45,19 +53,19 @@ rtems_timer_service_routine test_event_from_isr( * another task so doesn't impact this critical section. */ status = rtems_event_send( other_task, 0x02 ); - directive_failed( status, "event send" ); + fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "event send" ); /* * This event send hits the main task but doesn't satisfy * it's blocking condition so it will still block */ status = rtems_event_send( main_task, 0x02 ); - directive_failed( status, "event send" ); + fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "event send" ); case_hit = TRUE; } status = rtems_event_send( main_task, 0x01 ); - directive_failed( status, "event send" ); + fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "event send" ); } rtems_timer_service_routine test_event_with_timeout_from_isr( @@ -75,7 +83,7 @@ rtems_timer_service_routine test_event_with_timeout_from_isr( case_hit = TRUE; } status = rtems_event_send( main_task, 0x01 ); - directive_failed( status, "event send" ); + fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "event send" ); } rtems_task Init( |