forked from Imagelibrary/rtems
*** empty log message ***
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user