+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;
+
+ if (handle<0){
+ print_message("could not open file\n",2);
+ return -1;
+ }
+
+ /*there needs a large amout of test in the file in order to trigger EINVAL */
+ output=test_yaffs_read_EINVAL_init();
+ if (output<0){
+ print_message("could not write text to the file\n",2);
+ return -1;
+ }