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=a17dd8944a63cc391e7e3ef09b1a7e56204d96d4;hb=fb619fcd9415e8a5b9c8bdad87fff07a1b2579ab;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..a17dd89 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 @@ -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;