yaffs Added more tests to direct/timothy_tests/quick_tests
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_symlink.c
index 570136e01224804dc49f5a8d1d7b5e9db1c2cb61..ddebec1d3b56800de36adc51c5a63a5aaabb1de5 100644 (file)
@@ -17,6 +17,13 @@ static int output = 0;
 
 int test_yaffs_symlink(void)
 {
+       if (0 == yaffs_access(SYMLINK_PATH,0)){
+               output=yaffs_unlink(SYMLINK_PATH);
+               if (output<0){
+                       print_message("failed to unlink symlink\n",2);
+                       return -1;
+               }
+       }
        output = yaffs_symlink(FILE_PATH,SYMLINK_PATH);
        return output;
 }