X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_mknode.c;fp=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_mknode.c;h=0000000000000000000000000000000000000000;hb=396e2b402a7acd756c133cf49d9e3fbf96713c2b;hp=5c6c5ca31ebc2d0de1640613dbeda331f6d4ec9c;hpb=c2c3fedf8a75ce6b2e747fa4604a240077cd8be4;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_mknode.c b/direct/timothy_tests/quick_tests/test_yaffs_mknode.c deleted file mode 100644 index 5c6c5ca..0000000 --- a/direct/timothy_tests/quick_tests/test_yaffs_mknode.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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_mknode.h" - -static int output = 0; - -int test_yaffs_mknode(void) -{ - output = yaffs_mknod(NODE_PATH,S_IREAD | S_IWRITE); - return output; -} - - -int test_yaffs_mknode_clean(void) -{ - if (output >= 0){ - return yaffs_unlink(NODE_PATH); - } else { - return 1; /* the file failed to open so there is no need to close it */ - } -} -