X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_write_EFBIG.c;h=bfc591ea6b09c0eb0632bd3bcd191d31950cc667;hb=4adb62b1e4338eaa34d02fdcb0c5d99cebea6747;hp=a61d3dfc0fa73fc0fe1573c2c518df727c081dd2;hpb=7827323c3e54b664075177cdb5626bb4dd1e7ed1;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_write_EFBIG.c b/direct/timothy_tests/quick_tests/test_yaffs_write_EFBIG.c index a61d3df..bfc591e 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_write_EFBIG.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_write_EFBIG.c @@ -22,8 +22,16 @@ int test_yaffs_write_EFBIG(void) handle=test_yaffs_open(); int x=0; - long int file_name_length=100000000000; - + int file_name_length=20000; + if (handle<0){ + printf("failed to open file\n"); + return -1; + } + output=yaffs_lseek(handle,0x7FFFFF00, SEEK_SET); + if (output<0){ + printf("failed to seek\n"); + return -1; + } file_name = malloc(file_name_length); if(!file_name){ printf("unable to create file text\n");