X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_symlink.c;h=be7405721aaba4cd287443a18efa6284e33a4d19;hb=6648cbf52d6695755941ff8607fd7a0cda542e05;hp=570136e01224804dc49f5a8d1d7b5e9db1c2cb61;hpb=03704f115fc239e6a7df6eeb6da2716aec3318f8;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_symlink.c b/direct/timothy_tests/quick_tests/test_yaffs_symlink.c index 570136e..be74057 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_symlink.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_symlink.c @@ -1,7 +1,7 @@ /* * YAFFS: Yet another FFS. A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Timothy Manning @@ -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; }