2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>

* spchain/init.c: Improve coverage testing.
This commit is contained in:
Joel Sherrill
2011-03-09 00:38:56 +00:00
parent 53a27c2f96
commit 9d5f6005b5
2 changed files with 17 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
* spchain/init.c: Improve coverage testing.
2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Add AC_CONFIG_HEADER(config.h).

View File

@@ -76,6 +76,13 @@ static void test_chain_with_notification(void)
rtems_test_assert( sc == RTEMS_SUCCESSFUL );
rtems_test_assert( p == &a );
rtems_chain_initialize_empty( &chain );
rtems_chain_append( &chain, &b );
sc = rtems_chain_append_with_notification( &chain, &a, rtems_task_self(), EVENT );
rtems_test_assert( sc == RTEMS_SUCCESSFUL );
rtems_test_assert( p == &a );
puts( "INIT - Verify rtems_chain_prepend_with_notification" );
rtems_chain_initialize_empty( &chain );
sc = rtems_chain_prepend_with_notification( &chain, &a, rtems_task_self(), EVENT );
@@ -84,6 +91,12 @@ static void test_chain_with_notification(void)
rtems_test_assert( sc == RTEMS_SUCCESSFUL );
rtems_test_assert( p == &a );
rtems_chain_prepend( &chain, &b );
sc = rtems_chain_prepend_with_notification( &chain, &a, rtems_task_self(), EVENT );
rtems_test_assert( sc == RTEMS_SUCCESSFUL );
rtems_test_assert( p == &a );
puts( "INIT - Verify rtems_chain_prepend_with_notification" );
puts( "INIT - Verify rtems_chain_get_with_notification" );
rtems_chain_initialize_empty( &chain );