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
int test_yaffs_chmod_EROFS_clean(void)
{
- return test_yaffs_chmod() | EROFS_clean();
+ return EROFS_clean() | test_yaffs_chmod() ;
}
+++ /dev/null
-/*
- * 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 */
- }
-}
-
+++ /dev/null
-/*
- * 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