+ if(file_name){
+ free(file_name);
+ file_name = NULL;
+ }
+
+
+ output= yaffs_truncate(FILE_PATH,FILE_SIZE );
+ if (output>=0){
+ output=test_yaffs_write();
+ if (output<0){
+ print_message("failed to write to file\n",2);
+ return -1;
+ } else {
+ output=test_yaffs_write_clean();
+ if (output<0){
+ print_message("failed to clean the write_to_file function\n",2);
+ }
+ }
+ } else {
+ print_message("failed to truncate file\n",2);
+ return -1;
+ }
+