X-Git-Url: https://yaffs.net/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftest-framework%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_unlink.c;h=cffdb25619a27b3820e3bae9e5154b65c2741890;hp=f45b59592dede94e68d95cf67b3ea91574389768;hb=a175efe13e14f1be10ed4691cd1b8eee32abc046;hpb=17c2897913447766bfd88fd49ca897821a3d2205 diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink.c index f45b595..cffdb25 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink.c @@ -15,6 +15,10 @@ int test_yaffs_unlink(void) { + if (yaffs_close(yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE))==-1){ + print_message("failed to create file before remounting\n",1); + return -1; + } int output=yaffs_unlink(FILE_PATH); if (output>=0){ return (-test_yaffs_access()); /*return negative access. we do not want the file to be there*/