1 #include "test_yaffs_truncate.h"
3 int test_yaffs_truncate(void){
4 int handle=test_open_file();
6 return yaffs_truncate(FILE_PATH,FILE_SIZE_TRUNCATED );
9 printf("error opening file");
14 int test_yaffs_truncate_clean(void){
15 /* change file size back to orignal size */
16 int handle=test_open_file();
18 return yaffs_truncate(FILE_PATH,FILE_SIZE );
21 printf("error opening file in clean function");