int test_yaffs_open(void){
- handle=yaffs_open(FILE_PATH,O_CREAT | O_TRUNC| O_RDWR, FILE_MODE);
+ handle=yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE);
return handle;
}
int test_yaffs_open_clean(void){
- handle=0;
if (handle >=0){
return yaffs_close(handle);
}