diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-07 12:53:41 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-11 10:58:09 +0100 |
commit | 28779c70ffebbb2006eb7df01d64180859bb324e (patch) | |
tree | 18a8a77fce926492c090ca2bea21904d743adeb6 /testsuites/sptests/sp37 | |
parent | score: Add local context to SMP lock API (diff) | |
download | rtems-28779c70ffebbb2006eb7df01d64180859bb324e.tar.bz2 |
score: Add function to destroy SMP locks
Diffstat (limited to 'testsuites/sptests/sp37')
-rw-r--r-- | testsuites/sptests/sp37/init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c index cd49ae26f8..4a3e08c862 100644 --- a/testsuites/sptests/sp37/init.c +++ b/testsuites/sptests/sp37/init.c @@ -178,6 +178,9 @@ static void test_isr_locks( void ) _ISR_lock_Release( &lock, &lock_context ); rtems_test_assert( normal_interrupt_level == _ISR_Get_level() ); + + _ISR_lock_Destroy( &lock ); + _ISR_lock_Destroy( &initialized ); } static rtems_mode get_interrupt_level( void ) @@ -212,6 +215,9 @@ static void test_interrupt_locks( void ) rtems_interrupt_lock_release_isr( &lock, &lock_context ); rtems_test_assert( normal_interrupt_level == get_interrupt_level() ); + + rtems_interrupt_lock_destroy( &lock ); + rtems_interrupt_lock_destroy( &initialized ); } void test_interrupt_inline(void) |