yaffs update to quick tests.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_truncate.c
1 #include "test_yaffs_truncate.h"
2
3 int test_yaffs_truncate(void){
4         int handle=test_open_file();
5         if (handle>0){
6                 return yaffs_truncate(FILE_PATH,FILE_SIZE_TRUNCATED );
7         }
8         else {
9                 printf("error opening file");
10                 return -1;
11         }
12 }
13
14 int test_yaffs_truncate_clean(void){
15         /* change file size back to orignal size */
16         int handle=test_open_file();
17         if (handle>0){
18                 return yaffs_truncate(FILE_PATH,FILE_SIZE );
19         }
20         else {
21                 printf("error opening file in clean function");
22                 return -1;
23         }
24
25 }