1 #include "test_yaffs_read.h"
3 int test_yaffs_read(void){
4 int handle=test_open_file();
7 printf("handle %d\n",handle);
9 output=yaffs_read(handle, text, FILE_TEXT_NBYTES);
10 printf("yaffs_test_read output: %d\n",output);
11 printf("text in file is: %s\n",text);
17 printf("returned text does not match the the expected text that should be in the file\n");
22 printf("error reading file\n");
27 printf("error opening file\n");
33 int test_yaffs_read_clean(void){
34 /* need to reset the seek position*/
36 return test_yaffs_lseek_to_beginning();