summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spchain/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/spchain/init.c')
-rw-r--r--testsuites/sptests/spchain/init.c7
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)