Update timothy test Makefile
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_unlink_EROFS.c
index 23ac0f77a9c68196c67cfb3feebefc3dade39e55..7e1d602feaad6607b482162739e2a9b3ca27e525 100644 (file)
@@ -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 <timothy@yaffs.net>
  */
 
 #include "test_yaffs_open_EROFS.h"
-
+static int output =0;
 
 int test_yaffs_unlink_EROFS(void)
 {
-       int output=0;
+
        int error_code=0;
 
        EROFS_setup();
@@ -38,7 +38,7 @@ int test_yaffs_unlink_EROFS(void)
 
 }
 int test_yaffs_unlink_EROFS_clean(void)
-{
-       return EROFS_clean();
+{      
+       return EROFS_clean()&& yaffs_close(test_yaffs_open()) ;
 }