forked from Imagelibrary/rtems
2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
* spchain/init.c: Improve coverage testing.
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user