projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Yet more tests for quick tests.
[yaffs2.git]
/
direct
/
timothy_tests
/
quick_tests
/
test_yaffs_open_ENAMETOOLONG.c
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 e896abcf6b24fff21755fcc11bebb81d46aabe01..44fd562dc041e771f7f8b3e2287e1a4b3af6b298 100644
(file)
--- 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 );
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);
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){
}
}
else if (output >=0){
+ printf("handle %d \n",handle);
printf("non existant file opened.(which is a bad thing)\n");
return -1;
}
printf("non existant file opened.(which is a bad thing)\n");
return -1;
}