From: Timothy Manning Date: Wed, 15 Dec 2010 22:22:32 +0000 (+1300) Subject: yaffs Fixed some more bugs in direct/timothy_tests/mirror_tests X-Git-Tag: linux-mainline-patchset-4~6^2~6 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=34c624da44aa052d44993239c5a3be0b802673c9 yaffs Fixed some more bugs in direct/timothy_tests/mirror_tests Signed-off-by: Timothy Manning --- diff --git a/direct/timothy_tests/mirror_tests/mirror_tests.c b/direct/timothy_tests/mirror_tests/mirror_tests.c index 641ceeb..28b88b5 100644 --- a/direct/timothy_tests/mirror_tests/mirror_tests.c +++ b/direct/timothy_tests/mirror_tests/mirror_tests.c @@ -166,10 +166,10 @@ int run_random_test(int num_of_random_tests) int id=0; int test_id=-1; int num_of_tests_before_check=10; - char message[100]; + char message[200]; arg_temp args_struct; for (y=0;(y*num_of_tests_before_check)d_name); + strcpy(message,linux_current_file->d_name); + print_message(3,"opened file: "); + print_message(3,message); + print_message(3,"\n"); + } + if (NULL!=linux_current_file && + 0!=strcmp(message,".")&& + 0!=strcmp(message,"..")){ + // strcpy(message,linux_current_file->d_name); + //sprintf("file opened: %s\n",linux_current_file->d_name); + //print_message(3,message); + print_message(3,"added file to list\n"); + strcpy(linux_file_list[y],message); + y++; + sprintf(message,"file added to list: %s\n",linux_file_list[x]); + print_message(3,message); } } closedir(linux_open_dir); + } else { + print_message(3,"failed to populate linux test dir\n"); } + + for (x=0;xd_name); // generate_array_of_objects_in_yaffs(); // generate_array_of_objects_in_linux();