projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Found and fixed the bugs in quick tests.
[yaffs2.git]
/
direct
/
timothy_tests
/
quick_tests
/
test_yaffs_truncate.c
diff --git
a/direct/timothy_tests/quick_tests/test_yaffs_truncate.c
b/direct/timothy_tests/quick_tests/test_yaffs_truncate.c
index 1b19bd5447fd7fd2f7c21af03cf3f461a6de36b0..c1ae528c72c4f510e463b75ec97017b8195d7b6c 100644
(file)
--- a/
direct/timothy_tests/quick_tests/test_yaffs_truncate.c
+++ b/
direct/timothy_tests/quick_tests/test_yaffs_truncate.c
@@
-16,7
+16,7
@@
static int handle=0;
int test_yaffs_truncate(void){
handle=test_yaffs_open();
int test_yaffs_truncate(void){
handle=test_yaffs_open();
- if (handle>0){
+ if (handle>
=
0){
return yaffs_truncate(FILE_PATH,FILE_SIZE_TRUNCATED );
}
else {
return yaffs_truncate(FILE_PATH,FILE_SIZE_TRUNCATED );
}
else {
@@
-27,9
+27,8
@@
int test_yaffs_truncate(void){
int test_yaffs_truncate_clean(void){
/* change file size back to orignal size */
int test_yaffs_truncate_clean(void){
/* change file size back to orignal size */
- int handle=test_yaffs_open();
int output=0;
int output=0;
- if (handle>0){
+ if (handle>
=
0){
output= yaffs_truncate(FILE_PATH,FILE_SIZE );
if (output>=0){
return yaffs_close(handle);
output= yaffs_truncate(FILE_PATH,FILE_SIZE );
if (output>=0){
return yaffs_close(handle);