#include "test_yaffs_unlink_ENAMETOOLONG.h"
-static int handle=0;
+
int test_yaffs_unlink_ENAMETOOLONG(void){
int output=0;
int error_code=0;
printf("directory unlinked opened.(which is a bad thing)\n");
return -1;
}
- /* the program should not get here but the compiler is complaining */
- return -1;
}
+
int test_yaffs_unlink_ENAMETOOLONG_clean(void){
- if (handle >=0){
- return yaffs_close(handle);
- }
- else {
- return 1; /* the file failed to open so there is no need to close it*/
- }
+ return 1;
}