projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs-direct: Add reldir and reldev interfaces
[yaffs2.git]
/
direct
/
test-framework
/
timothy_tests
/
quick_tests
/
test_yaffs_stat.c
diff --git
a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat.c
b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat.c
index f3aa8f75a33bd475fcf4e35270539689905c53d3..5b5cd31c8b0ac34e0ddd8c217ce83382df8b2226 100644
(file)
--- a/
direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat.c
+++ b/
direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat.c
@@
-20,7
+20,10
@@
int test_yaffs_stat(void)
int size=0;
message[0]='\0';
struct yaffs_stat stat;
int size=0;
message[0]='\0';
struct yaffs_stat stat;
-
+ if (yaffs_close(yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE))==-1){
+ print_message("failed to create file \n",1);
+ return -1;
+ }
return yaffs_stat(FILE_PATH, &stat);
}
return yaffs_stat(FILE_PATH, &stat);
}