projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further integration of 64-bit time changes
[yaffs2.git]
/
direct
/
test-framework
/
timothy_tests
/
quick_tests
/
test_yaffs_read_EINVAL.c
diff --git
a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c
b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c
index 101c458a4bd6bf68b7dbe3f94dd8fc5453c448c9..c024df280413a4df2492202c95c5135c6693f821 100644
(file)
--- a/
direct/test-framework/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c
+++ b/
direct/test-framework/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c
@@
-1,8
+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-2011 Aleph One Ltd.
- * for Toby Churchill Ltd and Brightstar Engineering
+ * Copyright (C) 2002-2018 Aleph One Ltd.
*
* Created by Timothy Manning <timothy@yaffs.net>
*
*
* Created by Timothy Manning <timothy@yaffs.net>
*
@@
-11,7
+10,10
@@
* published by the Free Software Foundation.
*/
* published by the Free Software Foundation.
*/
+/*this is no longer relevent because it is not possiable to read -1 bytes*/
+
#include "test_yaffs_read_EINVAL.h"
#include "test_yaffs_read_EINVAL.h"
+#include "test_yaffs_write.h"
static int handle = -1;
static char *file_name = NULL;
static int handle = -1;
static char *file_name = NULL;
@@
-19,10
+21,14
@@
static char *file_name = NULL;
int test_yaffs_read_EINVAL(void)
{
int error_code = 0;
int test_yaffs_read_EINVAL(void)
{
int error_code = 0;
- handle=yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE);
char text[2000000];
int output=0;
char text[2000000];
int output=0;
-
+ /*if (yaffs_close(yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE))==-1){
+ print_message("failed to create file before remounting\n",1);
+ return -1;
+ }*/
+ handle=yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE);
+
if (handle<0){
print_message("could not open file\n",2);
return -1;
if (handle<0){
print_message("could not open file\n",2);
return -1;