projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Are trapping a suspeced bug in quick_tests.
[yaffs2.git]
/
direct
/
timothy_tests
/
quick_tests
/
test_yaffs_read.c
diff --git
a/direct/timothy_tests/quick_tests/test_yaffs_read.c
b/direct/timothy_tests/quick_tests/test_yaffs_read.c
index 9033107d9f5762e59870e54eec38662a9c6d9573..d396ff607efa8075169568411b2b55dfb0bf9724 100644
(file)
--- a/
direct/timothy_tests/quick_tests/test_yaffs_read.c
+++ b/
direct/timothy_tests/quick_tests/test_yaffs_read.c
@@
-6,16
+6,19
@@
int test_yaffs_read(void){
int output=0;
if (handle>0){
output=yaffs_read(handle, text, FILE_TEXT_NBYTES);
int output=0;
if (handle>0){
output=yaffs_read(handle, text, FILE_TEXT_NBYTES);
- if (output>0){
+ printf("output: %d\n",output);
+ if (output>0){
if (text==FILE_TEXT){
return 1;
}
else {
printf("text does not match the the text that should be in the file\n");
if (text==FILE_TEXT){
return 1;
}
else {
printf("text does not match the the text that should be in the file\n");
+ return -1;
}
}
else{
}
}
else{
- printf("error reading file");
+ printf("error reading file\n");
+ return -1;
}
}
else {
}
}
else {