/*
* YAFFS: Yet another FFS. A NAND-flash specific file system.
*
- * Copyright (C) 2002-2010 Aleph One Ltd.
+ * Copyright (C) 2002-2011 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Timothy Manning <timothy@yaffs.net>
#include "test_yaffs_write_big_file.h"
-static int handle=0;
+static int handle=-1;
static char *file_name = NULL;
int test_yaffs_write_big_file(void)
{
return -1;
}
- strcat(file_name,YAFFS_MOUNT_POINT);
+ strcpy(file_name,YAFFS_MOUNT_POINT);
for (x=strlen(YAFFS_MOUNT_POINT); x<file_name_length -1; x++){
file_name[x]='a';
}
}
- output= test_yaffs_truncate_clean();
+ output= yaffs_truncate(FILE_PATH,FILE_SIZE );
if (output>=0){
output=test_yaffs_write();
if (output>=0){
- return 1;
+ return test_yaffs_write_clean();
} else {
printf("failed to write to file\n");
return -1;