1 #include "test_yaffs_read.h"
5 int test_yaffs_read(void){
6 handle=test_yaffs_open();
9 printf("handle %d\n",handle);
11 output=yaffs_read(handle, text, FILE_TEXT_NBYTES);
12 printf("yaffs_test_read output: %d\n",output);
13 printf("text in file is: %s\n",text);
19 printf("returned text does not match the the expected text that should be in the file\n");
24 printf("error reading file\n");
29 printf("error opening file\n");
35 int test_yaffs_read_clean(void){
36 return yaffs_close(handle);