X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=direct%2Ftest-framework%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_access.c;h=23b8c035f4e227c3e90f971b517e7838757b7898;hb=a175efe13e14f1be10ed4691cd1b8eee32abc046;hp=1e516bc60d40525559bf488d1e449048c614e352;hpb=17c2897913447766bfd88fd49ca897821a3d2205;p=yaffs2.git diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_access.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_access.c index 1e516bc..23b8c03 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_access.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_access.c @@ -15,7 +15,12 @@ int test_yaffs_access(void) { - return yaffs_access(FILE_PATH,0); + + if (-1==yaffs_close(yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE))){ + print_message("failed to create file\n",1); + return -1; + } + return yaffs_access(FILE_PATH,0); } int test_yaffs_access_clean(void)