yaffs Are trapping a suspeced bug in quick_tests.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_unlinking.c
index 4972dfb10f5f3a37abe38685e6161d4e14b678c6..795c8d4cccc47ad55d0a530ff8f23b9335c12392 100644 (file)
@@ -2,7 +2,13 @@
 
 int test_yaffs_unlinking(void){
        int output=yaffs_unlink(FILE_PATH);
 
 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){
 }
 
 int test_yaffs_unlinking_clean(void){