yaffs Fixed some problems with direct/timothy_tests/quick_tests
authorTimothy Manning <tfhmanning@gmail.com>
Fri, 26 Nov 2010 01:41:55 +0000 (14:41 +1300)
committerTimothy Manning <tfhmanning@gmail.com>
Fri, 26 Nov 2010 01:43:48 +0000 (14:43 +1300)
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
direct/timothy_tests/quick_tests/README.txt
direct/timothy_tests/quick_tests/test_yaffs_chmod_EROFS.c
direct/timothy_tests/quick_tests/test_yaffs_mknode.c [deleted file]
direct/timothy_tests/quick_tests/test_yaffs_mknode.h [deleted file]

index bbeb0d77eb72688d05b3d804d5072d2524a28bcb..a2a08ff1cd2efbd79dc2c2ae32547c0c5f3c2bb7 100644 (file)
@@ -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
index fef37e5504f1bec111f6583216e8d8cd2004d045..26e701c9d4f90c3fed673d5bbb60878334fea04c 100644 (file)
@@ -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 (file)
index 5c6c5ca..0000000
+++ /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 <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_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 (file)
index 7699141..0000000
+++ /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 <timothy@yaffs.net>
- *
- * 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