X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_open_ENAMETOOLONG.c;h=44fd562dc041e771f7f8b3e2287e1a4b3af6b298;hb=f2d4dfa2c923765689724dc8e9328017e895beb3;hp=e896abcf6b24fff21755fcc11bebb81d46aabe01;hpb=250248634f57704c06d3ae5050febb33ad5c67d8;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_open_ENAMETOOLONG.c b/direct/timothy_tests/quick_tests/test_yaffs_open_ENAMETOOLONG.c index e896abc..44fd562 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_open_ENAMETOOLONG.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_open_ENAMETOOLONG.c @@ -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; }