X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_ftruncate_EINVAL.c;fp=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_ftruncate_EINVAL.c;h=ddab41869192c878cf57fc4d5969ba6ecf051bb9;hp=9a47c39046e027902ea0095e49a365e730dd2568;hb=4adb62b1e4338eaa34d02fdcb0c5d99cebea6747;hpb=7827323c3e54b664075177cdb5626bb4dd1e7ed1 diff --git a/direct/timothy_tests/quick_tests/test_yaffs_ftruncate_EINVAL.c b/direct/timothy_tests/quick_tests/test_yaffs_ftruncate_EINVAL.c index 9a47c39..ddab418 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_ftruncate_EINVAL.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_ftruncate_EINVAL.c @@ -46,6 +46,9 @@ int test_yaffs_ftruncate_EINVAL(void){ } int test_yaffs_ftruncate_EINVAL_clean(void){ + if (handle<0){ + return yaffs_close(handle); + } return 1; }