From aa473025f70d144ef9b50e833e7d9b91aad134f9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 3 Nov 2015 11:10:21 +0100 Subject: sapi: Add rtems_chain_get_first_unprotected() Close #2459. --- testsuites/sptests/spchain/init.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'testsuites') 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) -- cgit v1.2.3