projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP Changes to tests
[yaffs2.git]
/
direct
/
timothy_tests
/
quick_tests
/
test_yaffs_fchmod_EBADF.c
diff --git
a/direct/timothy_tests/quick_tests/test_yaffs_fchmod_EBADF.c
b/direct/timothy_tests/quick_tests/test_yaffs_fchmod_EBADF.c
index 159f135e7f82f0ab899f9d27bbfc687ac1881d5e..faed470b2f16dcf1d70d29963c645c567365c274 100644
(file)
--- a/
direct/timothy_tests/quick_tests/test_yaffs_fchmod_EBADF.c
+++ b/
direct/timothy_tests/quick_tests/test_yaffs_fchmod_EBADF.c
@@
-1,7
+1,7
@@
/*
* YAFFS: Yet another FFS. A NAND-flash specific file system.
*
/*
* YAFFS: Yet another FFS. A NAND-flash specific file system.
*
- * Copyright (C) 2002-201
0
Aleph One Ltd.
+ * Copyright (C) 2002-201
1
Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Timothy Manning <timothy@yaffs.net>
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Timothy Manning <timothy@yaffs.net>
@@
-13,21
+13,13
@@
#include "test_yaffs_fchmod_EBADF.h"
#include "test_yaffs_fchmod_EBADF.h"
-static int handle = -1;
int test_yaffs_fchmod_EBADF(void)
{
int error = 0;
int output = 0;
int test_yaffs_fchmod_EBADF(void)
{
int error = 0;
int output = 0;
-
- handle = test_yaffs_open();
- if (handle < 0){
- print_message("failed to open file\n",2);
- return -1;
- }
-
- output = yaffs_fchmod(-1,S_IREAD||S_IWRITE);
+ output = yaffs_fchmod(-1,S_IREAD|S_IWRITE);
if (output<0){
error=yaffs_get_error();
if (output<0){
error=yaffs_get_error();
@@
-47,10
+39,5
@@
int test_yaffs_fchmod_EBADF(void)
int test_yaffs_fchmod_EBADF_clean(void)
{
int test_yaffs_fchmod_EBADF_clean(void)
{
- if (handle >= 0) {
- printf("handle %d\n",handle);
- return yaffs_close(handle);
- }
return 1;
return 1;
-
}
}