1 #include "test_yaffs_ftruncate.h"
4 int test_yaffs_ftruncate(void){
5 handle=test_yaffs_open();
7 return yaffs_ftruncate(handle,FILE_SIZE_TRUNCATED );
10 printf("error opening file\n");
15 int test_yaffs_ftruncate_clean(void){
16 /* change file size back to orignal size */
19 output=yaffs_ftruncate(handle,FILE_SIZE );
21 return yaffs_close(handle);
24 printf("failed to truncate file\n");
29 printf("error opening file in clean function\n");