fixed up all the quick tests
[yaffs2.git] / direct / test-framework / timothy_tests / quick_tests / test_yaffs_stat.c
index f3aa8f75a33bd475fcf4e35270539689905c53d3..5b5cd31c8b0ac34e0ddd8c217ce83382df8b2226 100644 (file)
@@ -20,7 +20,10 @@ int test_yaffs_stat(void)
        int size=0;
        message[0]='\0';
        struct yaffs_stat stat;
-
+       if (yaffs_close(yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE))==-1){
+               print_message("failed to create file \n",1);
+               return -1;
+       }
        return yaffs_stat(FILE_PATH, &stat);
 }