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.c
diff --git
a/direct/timothy_tests/quick_tests/test_yaffs_write.c
b/direct/timothy_tests/quick_tests/test_yaffs_write.c
index dbd17e592b91421c2a4b9bd7b4d296a55fda6b1e..cd5a61ffec468a8fd6189f9ae5ec968a23643eb5 100644
(file)
--- a/
direct/timothy_tests/quick_tests/test_yaffs_write.c
+++ b/
direct/timothy_tests/quick_tests/test_yaffs_write.c
@@
-27,5
+27,10
@@
int test_yaffs_write(void){
}
int test_yaffs_write_clean(void){
}
int test_yaffs_write_clean(void){
- return yaffs_close(handle);
+ if (handle>=0){
+ return yaffs_close(handle);
+ }
+ else {
+ return 1; /* no handle was opened so there is no need to close a handle */
+ }
}
}