X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_open_ENAMETOOLONG.c;h=44fd562dc041e771f7f8b3e2287e1a4b3af6b298;hp=e896abcf6b24fff21755fcc11bebb81d46aabe01;hb=22f31a41cbb9a08e67204279fb3b37e400309f1c;hpb=250248634f57704c06d3ae5050febb33ad5c67d8 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; }