X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_write.c;fp=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_write.c;h=adee496718d7de05db0076d1655cefe53f8f87cc;hb=26592c53da98ac887099559afbcb8dda05264e1c;hp=0000000000000000000000000000000000000000;hpb=10fffbf6cc8a96cb9b3b9164c668202010e37faa;p=yaffs2.git 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 index 0000000..adee496 --- /dev/null +++ b/direct/timothy_tests/quick_tests/test_yaffs_write.c @@ -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; +}