From 396e2b402a7acd756c133cf49d9e3fbf96713c2b Mon Sep 17 00:00:00 2001 From: Timothy Manning Date: Fri, 26 Nov 2010 14:41:55 +1300 Subject: [PATCH] yaffs Fixed some problems with direct/timothy_tests/quick_tests Signed-off-by: Timothy Manning --- direct/timothy_tests/quick_tests/README.txt | 1 - .../quick_tests/test_yaffs_chmod_EROFS.c | 2 +- .../quick_tests/test_yaffs_mknode.c | 33 ------------------- .../quick_tests/test_yaffs_mknode.h | 25 -------------- 4 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 direct/timothy_tests/quick_tests/test_yaffs_mknode.c delete mode 100644 direct/timothy_tests/quick_tests/test_yaffs_mknode.h diff --git a/direct/timothy_tests/quick_tests/README.txt b/direct/timothy_tests/quick_tests/README.txt index bbeb0d7..a2a08ff 100644 --- a/direct/timothy_tests/quick_tests/README.txt +++ b/direct/timothy_tests/quick_tests/README.txt @@ -316,7 +316,6 @@ Tests which do not exist in yaffs: test_yaffs_mkdir_ELOOP //the yaffs_mknod function does not exist in yaffsfs, so these tests will not be added. - test_yaffs_mknod test_yaffs_mknod_EACCES test_yaffs_mknod_EEXIST test_yaffs_mknod_EINVAL diff --git a/direct/timothy_tests/quick_tests/test_yaffs_chmod_EROFS.c b/direct/timothy_tests/quick_tests/test_yaffs_chmod_EROFS.c index fef37e5..26e701c 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_chmod_EROFS.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_chmod_EROFS.c @@ -39,5 +39,5 @@ int test_yaffs_chmod_EROFS(void) int test_yaffs_chmod_EROFS_clean(void) { - return test_yaffs_chmod() | EROFS_clean(); + return EROFS_clean() | test_yaffs_chmod() ; } 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 */ - } -} - diff --git a/direct/timothy_tests/quick_tests/test_yaffs_mknode.h b/direct/timothy_tests/quick_tests/test_yaffs_mknode.h deleted file mode 100644 index 7699141..0000000 --- a/direct/timothy_tests/quick_tests/test_yaffs_mknode.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * YAFFS: Yet another Flash File System . 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 Lesser General Public License version 2.1 as - * published by the Free Software Foundation. - * - * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL. - */ - -#ifndef __test_yaffs_mknode_h__ -#define __test_yaffs_mknode_h__ - -#include "lib.h" -#include "yaffsfs.h" - -int test_yaffs_mknode(void); -int test_yaffs_mknode_clean(void); - -#endif -- 2.30.2