fixed up all the quick tests
[yaffs2.git] / direct / test-framework / timothy_tests / quick_tests / test_yaffs_unlink.c
index f45b59592dede94e68d95cf67b3ea91574389768..cffdb25619a27b3820e3bae9e5154b65c2741890 100644 (file)
 
 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*/