test_yaffs_fstat.o test_yaffs_fstat_EBADF.o \
test_yaffs_close_EBADF.o\
test_yaffs_chmod.o test_yaffs_chmod_ENOENT.o test_yaffs_chmod_ENOTDIR.o test_yaffs_chmod_EINVAL.o \
- test_yaffs_chmod_EINVAL2.o\
test_yaffs_fchmod.o test_yaffs_fchmod_EBADF.o
#include "test_yaffs_chmod_ENOENT.h"
#include "test_yaffs_chmod_ENOTDIR.h"
#include "test_yaffs_chmod_EINVAL.h"
-#include "test_yaffs_chmod_EINVAL2.h"
+
#include "test_yaffs_fchmod.h"
#include "test_yaffs_fchmod_EBADF.h"
{test_yaffs_chmod_ENOENT,test_yaffs_chmod_ENOENT_clean,"test_yaffs_chmod_ENOENT"},
{test_yaffs_chmod_ENOTDIR,test_yaffs_chmod_ENOTDIR_clean,"test_yaffs_chmod_ENOTDIR"},
{test_yaffs_chmod_EINVAL,test_yaffs_chmod_EINVAL_clean,"test_yaffs_chmod_EINVAL"},
- {test_yaffs_chmod_EINVAL2,test_yaffs_chmod_EINVAL2_clean,"test_yaffs_chmod_EINVAL2"},
{test_yaffs_fchmod,test_yaffs_fchmod_clean,"test_yaffs_fchmod"},
{test_yaffs_fchmod_EBADF,test_yaffs_fchmod_EBADF_clean,"test_yaffs_fchmod_EBADF"}
+++ /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_chmod_EINVAL2.h"
-
-int test_yaffs_chmod_EINVAL2(void)
-{
- int error=0;
- int output=yaffs_chmod("/non_existing_directory/foo",255);
-
- if (output<0){
- error=yaffs_get_error();
- if (abs(error)==EINVAL){
- return 1;
- } else {
- print_message("different error than expected\n",2);
- return -1;
- }
- } else {
- print_message("chmoded the file (which is a bad thing)\n",2);
- return -1;
- }
-
-}
-
-int test_yaffs_chmod_EINVAL2_clean(void)
-{
- return test_yaffs_chmod();
-}
+++ /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_chmod_EINVAL2_h__
-#define __test_yaffs_chmod_EINVAL2_h__
-
-#include "lib.h"
-#include "yaffsfs.h"
-#include "test_yaffs_chmod.h"
-
-int test_yaffs_chmod_EINVAL2(void);
-int test_yaffs_chmod_EINVAL2_clean(void);
-
-#endif
int test_yaffs_fchmod_clean(void)
{
if (handle >= 0) {
- printf("handle %d\n",handle);
return yaffs_close(handle);
}
return 1;