projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'mainlining'
[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..ce31a4cb336fbf493ee8fbe687fdbf687a6f0e07 100644
(file)
--- a/
direct/timothy_tests/quick_tests/test_yaffs_fchmod_EBADF.c
+++ b/
direct/timothy_tests/quick_tests/test_yaffs_fchmod_EBADF.c
@@
-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;
-
}
}