yaffs Added a README file and some more tests.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_open.c
index 068ceea09cb48befa02cd0bbdb68353a920f8455..89c7492701ce8876942650b45dafdbcc1e4cfd06 100644 (file)
@@ -1,3 +1,16 @@
+/*
+ * YAFFS: Yet another FFS. A NAND-flash specific file system.
+ *
+ * Copyright (C) 2002-2010 Aleph One Ltd.
+ *   for Toby Churchill Ltd and Brightstar Engineering
+ *
+ * Created by Timothy Manning <timothy@yaffs.net>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
 #include "test_yaffs_open.h"
 
 static int handle=0;
@@ -10,6 +23,7 @@ int test_yaffs_open(void){
 
 
 int test_yaffs_open_clean(void){
+       handle=0;
        if (handle >=0){
                return yaffs_close(handle);
        }