1 #include "test_yaffs_lseek.h"
3 int test_yaffs_lseek(void){
4 int handle=test_open_file();
8 return yaffs_lseek(handle, 0, SEEK_SET);
15 printf("text does not match the the text that should be in the file\n");
19 printf("error reading file");
23 printf("error opening file\n");
29 int test_yaffs_lseek_clean(void){
30 /* need to reset the seek position*/
31 return test_yaffs_lseek_to_beginning();
33 int test_yaffs_lseek_to_beginning(void){
34 int handle=test_open_file();
36 return yaffs_lseek(handle, 0, SEEK_SET);
39 printf("error opening file\n");