X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_unlinking.c;h=ce06543e877a95d23eb8c5b33a31866cb9c2bfa3;hb=fa6335ddf55329c1ba1c50c68080a559461151cc;hp=4972dfb10f5f3a37abe38685e6161d4e14b678c6;hpb=26592c53da98ac887099559afbcb8dda05264e1c;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_unlinking.c b/direct/timothy_tests/quick_tests/test_yaffs_unlinking.c index 4972dfb..ce06543 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_unlinking.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_unlinking.c @@ -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(); }