*** empty log message ***

This commit is contained in:
Joel Sherrill
2010-07-27 13:54:56 +00:00
parent 6b8ce02e3b
commit a7d3237314
3 changed files with 9 additions and 3 deletions

View File

@@ -17,6 +17,7 @@ directives:
+ devFS_read
+ devFS_write
+ null_initialize
concepts:
@@ -24,3 +25,5 @@ concepts:
paths in the read / write routines for devFS. These are invoked using
the system calls read() and write().
+ The write call is forwarded to null_write, thus exercising
null_write too.

View File

@@ -18,6 +18,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include "test_driver.h"
#include <rtems/devnull.h>
rtems_task Init(
rtems_task_argument argument
@@ -60,8 +61,10 @@ rtems_task Init(
rtems_test_assert( status == -1 );
rtems_test_assert( errno == ENOSYS );
puts( "*** END OF TEST DEVFS04 ***" );
status = mknod( "/dev/null", 0777 | S_IFCHR, 0LL );
rtems_test_assert( status == 0 );
puts( "*** END OF TEST DEVFS04 ***" );
rtems_test_exit(0);
}

View File

@@ -17,7 +17,7 @@
#include <rtems.h>
#include "test_driver.h"
#include <rtems/libio.h>
#include <rtems/devnull.h>
/*
* The test driver routines are mostly derived from the null driver routines.
*/
@@ -158,7 +158,7 @@ rtems_device_driver testDriver_write(
if ( rw_args ) {
if( rw_args->count == 5 )
rw_args->bytes_moved = rw_args->count;
return null_write( 0, 0, pargp );
else {
rw_args->bytes_moved = 0;
return RTEMS_NOT_IMPLEMENTED;