X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_open.c;h=89c7492701ce8876942650b45dafdbcc1e4cfd06;hb=81ea50c07a64dc33f1c0556fdbd836e50b143625;hp=068ceea09cb48befa02cd0bbdb68353a920f8455;hpb=fa6335ddf55329c1ba1c50c68080a559461151cc;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_open.c b/direct/timothy_tests/quick_tests/test_yaffs_open.c index 068ceea..89c7492 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_open.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_open.c @@ -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 + * + * 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); }