X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_open.c;h=d7237a89cbaec6e8732c4c1a4f2bc76dcc567b07;hb=a8fba94306bc6fcaf7d546a3276c12a168ed6261;hp=89c7492701ce8876942650b45dafdbcc1e4cfd06;hpb=a11dd4924d16a4c3d6df13a4182f7729a1478a53;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_open.c b/direct/timothy_tests/quick_tests/test_yaffs_open.c index 89c7492..d7237a8 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_open.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_open.c @@ -17,13 +17,12 @@ static int handle=0; int test_yaffs_open(void){ - handle=yaffs_open(FILE_PATH,O_CREAT | O_TRUNC| O_RDWR, FILE_MODE); + handle=yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE); return handle; } int test_yaffs_open_clean(void){ - handle=0; if (handle >=0){ return yaffs_close(handle); }