-static int handle=0;
-int test_yaffs_open_EEXIST(void){
- int output=0;
- int error_code=0;
- /*printf("path %s\n",path); */
- handle=yaffs_open(FILE_PATH, O_CREAT | O_EXCL | O_TRUNC| O_RDWR ,FILE_MODE );
- if (handle==-1){
- error_code=yaffs_get_error();
- //printf("EEXIST def %d, Error code %d\n",(- EEXIST),error_code);
- if (abs(error_code)== EEXIST){
+static int handle = -1;
+
+int test_yaffs_open_EEXIST(void)
+{
+ int error_code = 0;
+
+ handle = yaffs_open(FILE_PATH, O_CREAT | O_EXCL | O_TRUNC| O_RDWR ,FILE_MODE );
+ if (handle == -1){
+ error_code = yaffs_get_error();
+ if (abs(error_code) == EEXIST){