yaffs Are trapping a suspeced bug in quick_tests.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_unlinking.c
1 #include "test_yaffs_unlinking.h"
2
3 int test_yaffs_unlinking(void){
4         int output=yaffs_unlink(FILE_PATH);
5         if (output>=0){
6                 return (-test_yaffs_access());  /*return negative access. we do not want the file to be there*/
7         }
8         else {
9                 printf("failed to unlink file\n") ;
10                 return -1;
11         }
12 }
13
14 int test_yaffs_unlinking_clean(void){
15         return test_open_file();
16 }