yaffs Improvements on the quick tests code. note the bug is still here.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_unlinking.c
index 4972dfb10f5f3a37abe38685e6161d4e14b678c6..d5f278734b31db4c8eff568255d2cad66126b644 100644 (file)
@@ -2,9 +2,15 @@
 
 int test_yaffs_unlinking(void){
        int output=yaffs_unlink(FILE_PATH);
-       return output;
+       if (output>=0){
+               return (-test_yaffs_access());  /*return negative access. we do not want the file to be there*/
+       }
+       else {
+               printf("failed to unlink file\n") ;
+               return -1;
+       }
 }
 
 int test_yaffs_unlinking_clean(void){
-       return test_open_file();
+       return test_yaffs_open_file();
 }