diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-11-03 11:10:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-11-05 11:30:09 +0100 |
commit | aa473025f70d144ef9b50e833e7d9b91aad134f9 (patch) | |
tree | 2b38fa0e54f742b5bb2b28baefafac1bb1a9e4ad /testsuites | |
parent | score: Fix warning (diff) | |
download | rtems-aa473025f70d144ef9b50e833e7d9b91aad134f9.tar.bz2 |
sapi: Add rtems_chain_get_first_unprotected()
Close #2459.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/sptests/spchain/init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuites/sptests/spchain/init.c b/testsuites/sptests/spchain/init.c index ca2e135e95..476629b548 100644 --- a/testsuites/sptests/spchain/init.c +++ b/testsuites/sptests/spchain/init.c @@ -117,6 +117,13 @@ static void test_chain_first_and_last(void) puts( "INIT - Verify rtems_chain_is_last" ); cnode = rtems_chain_last(&chain); rtems_test_assert( rtems_chain_is_last( cnode ) ); + + cnode = rtems_chain_get_first_unprotected( &chain ); + rtems_test_assert( cnode == &node1 ); + cnode = rtems_chain_first( &chain ); + rtems_test_assert( cnode == &node2 ); + cnode = rtems_chain_last( &chain ); + rtems_test_assert( cnode == &node2 ); } static void test_chain_with_notification(void) |