yaffs update to quick tests.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_write.c
diff --git a/direct/timothy_tests/quick_tests/test_yaffs_write.c b/direct/timothy_tests/quick_tests/test_yaffs_write.c
new file mode 100644 (file)
index 0000000..adee496
--- /dev/null
@@ -0,0 +1,17 @@
+#include "test_yaffs_write.h"
+
+int test_yaffs_write(void){
+       int handle=test_open_file();
+       if (handle>0){
+               return yaffs_write(handle, FILE_TEXT, FILE_TEXT_NBYTES);
+       }
+       else {
+               printf("error opening file");
+               return -1;
+       }
+       
+}
+
+int test_yaffs_write_clean(void){
+       return 1;
+}