X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_ftruncate.c;fp=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_ftruncate.c;h=a6d661bcb04b66638ac542926369b55faaaec902;hp=fec910d346d7bef5e72f1d961f2468f2215cedeb;hb=f2d4dfa2c923765689724dc8e9328017e895beb3;hpb=250248634f57704c06d3ae5050febb33ad5c67d8 diff --git a/direct/timothy_tests/quick_tests/test_yaffs_ftruncate.c b/direct/timothy_tests/quick_tests/test_yaffs_ftruncate.c index fec910d..a6d661b 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_ftruncate.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_ftruncate.c @@ -16,7 +16,7 @@ static int handle=0; int test_yaffs_ftruncate(void){ handle=test_yaffs_open(); - if (handle>0){ + if (handle>=0){ return yaffs_ftruncate(handle,FILE_SIZE_TRUNCATED ); } else { @@ -28,7 +28,7 @@ int test_yaffs_ftruncate(void){ int test_yaffs_ftruncate_clean(void){ /* change file size back to orignal size */ int output=0; - if (handle>0){ + if (handle>=0){ output=yaffs_ftruncate(handle,FILE_SIZE ); if (output>=0){ return yaffs_close(handle);