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