yaffs Improvements on the quick tests code. note the bug is still here.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_write.c
index 08ff7659aee5fe0ea27a950fb82fd1fb7469776e..602afd52545561c635286c3a6fe854dc410e74dc 100644 (file)
@@ -1,7 +1,8 @@
 #include "test_yaffs_write.h"
 
+static int handle=0;
 int test_yaffs_write(void){
-       int handle=test_open_file();
+       handle=test_yaffs_open_file();
        if (handle>0){
                return yaffs_write(handle, FILE_TEXT, FILE_TEXT_NBYTES);
        }
@@ -13,6 +14,5 @@ int test_yaffs_write(void){
 }
 
 int test_yaffs_write_clean(void){
-       test_yaffs_lseek_to_beginning();
-       return 1;
+       return yaffs_close(handle);
 }