X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_unlinking.c;h=d5f278734b31db4c8eff568255d2cad66126b644;hb=d1be8e430d1b95bb0ff3b6af63132df9956173d6;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..d5f2787 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_file(); }