yaffs Found and fixed the bugs in quick tests.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_open_ENAMETOOLONG.c
index e896abcf6b24fff21755fcc11bebb81d46aabe01..44fd562dc041e771f7f8b3e2287e1a4b3af6b298 100644 (file)
@@ -33,7 +33,7 @@ int test_yaffs_open_ENAMETOOLONG(void){
 
 
        handle=yaffs_open(file_name, O_CREAT | O_TRUNC| O_RDWR ,FILE_MODE );
-       printf("handle %d \n",handle);
+
        if (handle==-1){
                error_code=yaffs_get_error();
                //printf("ENAMETOOLONG def %d, Error code %d\n", ENAMETOOLONG,error_code);
@@ -46,6 +46,7 @@ int test_yaffs_open_ENAMETOOLONG(void){
                }
        }
        else if (output >=0){
+               printf("handle %d \n",handle);
                printf("non existant file opened.(which is a bad thing)\n");
                return -1;
        }