1 #include "test_yaffs_write.h"
3 int test_yaffs_read(void){
4 int handle=test_open_file();
8 output=yaffs_read(handle, text, FILE_TEXT_NBYTES);
9 printf("output: %d\n",output);
15 printf("text does not match the the text that should be in the file\n");
20 printf("error reading file\n");
25 printf("error opening file\n");
31 int test_yaffs_read_clean(void){
32 /* need to reset the seek position*/
34 return test_yaffs_lseek_to_beginning();