yaffs More tests added to quick tests.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_open.c
index 89c7492701ce8876942650b45dafdbcc1e4cfd06..d7237a89cbaec6e8732c4c1a4f2bc76dcc567b07 100644 (file)
@@ -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);
        }