X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_write_big_file.c;h=99994660cba9dae57ad7814e27c94ce3c562d273;hb=d634851c1f36e7995726602d3af784478ccb472e;hp=6d5033151374f497ef430b931683e5eac53a0d39;hpb=24f00634ca4584100b60d7b68675c1c9c4646ee8;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_write_big_file.c b/direct/timothy_tests/quick_tests/test_yaffs_write_big_file.c index 6d50331..9999466 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_write_big_file.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_write_big_file.c @@ -1,7 +1,7 @@ /* * 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 @@ -13,7 +13,7 @@ #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) { @@ -38,7 +38,7 @@ 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=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;