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=602afd52545561c635286c3a6fe854dc410e74dc;hb=90c66937f76d1e4ce1fb43aed91219c4f1e443f1;hp=336473c223ef4bdc61c4b2d971d25969de5bebeb;hpb=98fdd77e12f7a14163568906da90b11f90f9f3e8;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 index 336473c..602afd5 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_write.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_write.c @@ -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,10 +14,5 @@ int test_yaffs_write(void){ } int test_yaffs_write_clean(void){ - if (0==test_yaffs_lseek_to_beginning()){ - return 1; - } - else { - return -1; - } + return yaffs_close(handle); }