1 #include "test_yaffs_lseek.h"
3 int test_yaffs_lseek(void){
4 int handle=test_open_file();
8 if (0==yaffs_lseek(handle, 0, SEEK_SET)){
12 printf("lseek returned a different position to the expeced position\n");
16 printf("error opening file\n");
22 int test_yaffs_lseek_clean(void){
23 /* need to reset the seek position*/
24 return test_yaffs_lseek_to_beginning();
26 int test_yaffs_lseek_to_beginning(void){
27 int handle=test_open_file();
29 if (0==yaffs_lseek(handle, 0, SEEK_SET)){ /*lseek returns the position of the seeker */
33 printf("lseek returned a different position to the expeced position\n");
37 printf("error opening file\n");