yaffs Improvements on the quick tests code. note the bug is still here.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_open_file_ENOENT.c
1 #include "test_yaffs_open_file_ENOENT.h"
2
3
4 int test_yaffs_open_file_ENOENT(void){
5         
6         int output=0;
7
8         /*printf("path %s\n",path); */
9         output=yaffs_open(FILE_PATH, O_TRUNC| O_RDWR, "/yaffs2/non_existant_file");
10         if (output==ENOENT){
11                 return output;
12         }
13         else if (output >=0){
14                 printf("non existant file opened.(which is a bad thing)\n");
15                 return -1;
16         }
17 }
18 int test_yaffs_open_file_ENOENT_clean(void){
19         return 1;
20 }
21