diff options
Diffstat (limited to 'testsuites/libtests/devfs01/init.c')
-rw-r--r-- | testsuites/libtests/devfs01/init.c | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/testsuites/libtests/devfs01/init.c b/testsuites/libtests/devfs01/init.c index aa7b146824..27dc8d3f97 100644 --- a/testsuites/libtests/devfs01/init.c +++ b/testsuites/libtests/devfs01/init.c @@ -22,39 +22,10 @@ rtems_task Init( rtems_task_argument argument ) { - int sc; - int size; - rtems_filesystem_location_info_t *temp_loc; - rtems_device_name_t *device_name_table; - puts( "\n\n*** TEST DEVFS01 ***" ); - puts( "devFS_Show - OK" ); - sc = devFS_Show(); - rtems_test_assert( sc == 0 ); - - /* save original node access information */ - temp_loc = &rtems_filesystem_root; - device_name_table = (rtems_device_name_t *)temp_loc->node_access; - temp_loc->node_access = NULL; - - puts( "devFS_Show - no device table - EFAULT" ); - sc = devFS_Show(); - rtems_test_assert( sc == -1 ); - rtems_test_assert( errno == EFAULT ); - - /* restore node access information */ - temp_loc->node_access = device_name_table; - - /* save original device table size information */ - size = rtems_device_table_size; - rtems_device_table_size = 0; - puts( "devFS_Show - devices - OK" ); - sc = devFS_Show(); - rtems_test_assert( sc == 0 ); - - /* restore original device table size information */ - rtems_device_table_size = size; + puts( "devFS_Show" ); + devFS_Show(); puts( "*** END OF TEST DEVFS01 ***" ); |