1 #include "test_yaffs_truncate.h"
4 int test_yaffs_truncate(void){
5 handle=test_yaffs_open();
7 return yaffs_truncate(FILE_PATH,FILE_SIZE_TRUNCATED );
10 printf("error opening file");
15 int test_yaffs_truncate_clean(void){
16 /* change file size back to orignal size */
17 int handle=test_yaffs_open();
20 output= yaffs_truncate(FILE_PATH,FILE_SIZE );
22 return yaffs_close(handle);
26 printf("error opening file in clean function");