602afd52545561c635286c3a6fe854dc410e74dc
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_write.c
1 #include "test_yaffs_write.h"
2
3 static int handle=0;
4 int test_yaffs_write(void){
5         handle=test_yaffs_open_file();
6         if (handle>0){
7                 return yaffs_write(handle, FILE_TEXT, FILE_TEXT_NBYTES);
8         }
9         else {
10                 printf("error opening file\n");
11                 return -1;
12         }
13         
14 }
15
16 int test_yaffs_write_clean(void){
17         return yaffs_close(handle);
18 }