projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Modified the make file to work with new name changes.
[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 adee496718d7de05db0076d1655cefe53f8f87cc..602afd52545561c635286c3a6fe854dc410e74dc 100644
(file)
--- a/
direct/timothy_tests/quick_tests/test_yaffs_write.c
+++ b/
direct/timothy_tests/quick_tests/test_yaffs_write.c
@@
-1,17
+1,18
@@
#include "test_yaffs_write.h"
#include "test_yaffs_write.h"
+static int handle=0;
int test_yaffs_write(void){
int test_yaffs_write(void){
-
int handle=test
_open_file();
+
handle=test_yaffs
_open_file();
if (handle>0){
return yaffs_write(handle, FILE_TEXT, FILE_TEXT_NBYTES);
}
else {
if (handle>0){
return yaffs_write(handle, FILE_TEXT, FILE_TEXT_NBYTES);
}
else {
- printf("error opening file");
+ printf("error opening file
\n
");
return -1;
}
}
int test_yaffs_write_clean(void){
return -1;
}
}
int test_yaffs_write_clean(void){
- return
1
;
+ return
yaffs_close(handle)
;
}
}