projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs More tests for quick tests.
[yaffs2.git]
/
direct
/
timothy_tests
/
quick_tests
/
test_yaffs_write_EFBIG.c
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 a61d3dfc0fa73fc0fe1573c2c518df727c081dd2..bfc591ea6b09c0eb0632bd3bcd191d31950cc667 100644
(file)
--- 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;
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");
file_name = malloc(file_name_length);
if(!file_name){
printf("unable to create file text\n");